I\'ve just learned the basics of Ruby after being very happy with Python for several years (I\'m still using Python for some things), but I\'d like to know if there\'s an id
You can find a similar functionality in ruby.
__FILE__ the current source file name. $0 Contains the name of the script being executed. May be assignable.
__FILE__ the current source file name.
$0 Contains the name of the script being executed. May be assignable.
source: Ruby Quick Ref