Skip to content

Instantly share code, notes, and snippets.

@calorie
Last active December 22, 2015 02:48
Show Gist options
  • Save calorie/6405356 to your computer and use it in GitHub Desktop.
Save calorie/6405356 to your computer and use it in GitHub Desktop.
ruby_global_values
ruby global values
$! $ERROR_INFO
$@ $ERROR_POSITION
$; $FIELD_SEPARATOR
$, $OUTPUT_FIELD_SEPARATOR
$/ $INPUT_RECORD_SEPARATOR
$\ $OUTPUT_RECORD_SEPARATOR
$. $INPUT_LINE_NUMBER
$_ $LAST_READ_LINE
$> $DEFAULT_OUTPUT
$< $DEFAULT_INPUT
$$ $PROCESS_ID
$? $CHILD_STATUS
$~ $LAST_MATCH_INFO
$= $IGNORECASE
$* $ARGV
$& $MATCH
$` $PREMATCH
$' $POSTMATCH
$+ $LAST_PAREN_MATCH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment