Articles related to ruby files
Using the Command Line--Running and Executing rb Files
Learn how to use the command line interface on Windows, Linux and OS X to run Ruby scripts and use the interactive Ruby program.
Getting Information About a File in Ruby Using File::Stat - About.com
For this, Ruby provides the File::stat class method, which will query the operating system about the file without opening it. It takes a single parameter, the ...
Using Logger Library: How to Write Log Files in Ruby - About.com
How to use the logger library to create and write to log files in Ruby.
Reading Files - Ruby - About.com
Ruby programs rarely exist in their own little world. And while many choose to communicate over the internet, there's still plenty of need to access plain old files.
Net:SSH--Transferring Files with Net::SCP - Ruby - About.com
One common use for SSH is to transfer files using the SCP protocol over SSH. You can use SCP in your Ruby programs with the Net::SCP library, which is a ...
Using Glob With Directories (Dir.glob) in Ruby - About.com
Particularly useful was the Dir.for each method for iterating over all files in a directory. However, this only goes so far. What if you want to iterate over only some ...
Using the Command Line - Ruby - About.com
Open a command line window and navigate to your Ruby scripts directory using the cd command. Once there, you can list files, using the dir command on ...
Is the "Require" Method Overlooked in Ruby? - About.com
The 'require' method is the reusable code mechanism in Ruby. It allows you to import other source files into your programs.
Working with Directories - Ruby - About.com
Learning how to work with files is one of the first things new Ruby programmers learn. However, how to work with directories of files is something that's often ...
Load Vs. Require - Ruby - About.com
It is a method in the Kernel module, but in MRI it is implemented in C (it would have to be, as Ruby has no API for loading and parsing Ruby files other than ...