A computer science website with some additional odds and ends as well as my favorite programming language Ruby and the popular Ruby web framework Ruby on Rails(RoR).
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:
Post a Comment