Ruby Language Special Constants in Ruby $PROGRAM_NAME or $0


Example

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