summaryrefslogtreecommitdiff
path: root/doc/globals.rdoc
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2019-07-13 15:35:16 +0200
committerBenoit Daloze <eregontp@gmail.com>2019-07-13 15:35:16 +0200
commitb1ee7148f8f9007d7154bf147daecc8c70dc44a3 (patch)
tree876578d91c991adc0bd73f5c1a04157fb9bc4486 /doc/globals.rdoc
parent0a5463f7645f6366e2239268de5bc56c0dfea9d1 (diff)
Improve documentation of $LOAD_PATH
Diffstat (limited to 'doc/globals.rdoc')
-rw-r--r--doc/globals.rdoc10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/globals.rdoc b/doc/globals.rdoc
index 284f3d764e..b1e0369481 100644
--- a/doc/globals.rdoc
+++ b/doc/globals.rdoc
@@ -24,11 +24,11 @@ $*:: The same as ARGV.
$$:: The process number of the Ruby running this script.
$?:: The status of the last executed child process. This value is
thread-local.
-$LOAD_PATH:: Load path for scripts and binary modules by load or require.
- Aliased to $: and $-I. Has a singleton method
- $LOAD_PATH.resolve_feature_path(feature) that returns
- [:rb or :so, path], which resolves the feature to the path the
- original Kernel#require method would load.
+$LOAD_PATH:: Load path for searching Ruby scripts and extension libraries used
+ by Kernel#load and Kernel#require. Aliased to $: and $-I.
+ Has a singleton method $LOAD_PATH.resolve_feature_path(feature)
+ that returns [:rb or :so, path], which resolves the feature to
+ 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