Saturday, June 26, 2010

Some Ruby Built In Global Variables

These maybe helpful to know:


$0 --- Returns the name of the file that ruby is executing
$: --- Returns the directories Ruby searches to load external files
$$ --- Returns the process id of the Ruby process

No comments: