Ruby Language Special Constants in Ruby $PROGRAM_NAME or $0

30% OFF - 9th Anniversary discount on Entity Framework Extensions until December 15 with code: ZZZANNIVERSARY9

Example

Contains the name of the script being executed.
Is the same as __FILE__ if you are executing that script.



Got any Ruby Language Question?