diff --git a/doc/globals.rdoc b/doc/globals.rdoc index 146b7fc34f..233e2bb085 100644 --- a/doc/globals.rdoc +++ b/doc/globals.rdoc @@ -30,23 +30,23 @@ $LOAD_PATH:: Load path for searching Ruby scripts and extension libraries used the path the original Kernel#require method would load. $LOADED_FEATURES:: The array contains the module names loaded by require. Aliased to $". -$DEBUG:: The debug flag, which is set by the -d switch. Enabling debug +$DEBUG:: The debug flag, which is set by the -d switch. Enabling debug output prints each exception raised to $stderr (but not its backtrace). Setting this to a true value enables debug output as - if -d were given on the command line. Setting this to a false + if -d were given on the command line. Setting this to a false value disables debug output. Aliased to $-d. $FILENAME:: Current input filename from ARGF. Same as ARGF.filename. $stderr:: The current standard error output. $stdin:: The current standard input. $stdout:: The current standard output. -$VERBOSE:: The verbose flag, which is set by the -w or -v switch. Setting - this to a true value enables warnings as if -w or -v were given +$VERBOSE:: The verbose flag, which is set by the -w or -v switch. + Setting this to a true value enables warnings as if -w or -v were given on the command line. Setting this to +nil+ disables warnings, including from Kernel#warn. Aliased to $-v and $-w. -$-a:: True if option -a is set. Read-only variable. +$-a:: True if option -a is set. Read-only variable. $-i:: In in-place-edit mode, this variable holds the extension, otherwise +nil+. -$-l:: True if option -l is set. Read-only variable. -$-p:: True if option -p is set. Read-only variable. +$-l:: True if option -l is set. Read-only variable. +$-p:: True if option -p is set. Read-only variable. == Pre-defined global constants