mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Improve documentation of $LOAD_PATH
This commit is contained in:
parent
0a5463f764
commit
b1ee7148f8
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue