| Start |
|---|
| FILE Is the relative path to the file from the current execution directory If you are inside /home/stackoverflow and execute the script like Very useful to get the path of the script in versions prior to 2.0 where Note |
| dir
|
| $PROGRAM_NAME or $0 Contains the name of the script being executed. |
| $1, $2, etc Contains the subpattern from the corresponding set of parentheses in the last successful pattern matched, not counting patterns matched in nested blocks that have been exited already, or nil if the last pattern match failed. These variables are all read-only. |
| ARGV or $* Command line arguments given for the script. The options for Ruby interpreter are already removed. |
| STDIN The standard input. The default value for $stdin |
| STDOUT The standard output. The default value for $stdout |
| STDERR The standard error output. The default value for $stderr |
| $stderr The current standard error output. |
| $stdout The current standard output |
| $stdin The current standard input |
| ENV The hash-like object contains current environment variables. Setting a value in ENV changes the environment for child processes. |
Read Article
https://develop.horje.com/learn/1434/reference