[前][次][番号順一覧][スレッド一覧]

ruby-changes:56434

From: Benoit <ko1@a...>
Date: Sat, 13 Jul 2019 22:35:58 +0900 (JST)
Subject: [ruby-changes:56434] Benoit Daloze: b1ee7148f8 (master): Improve documentation of $LOAD_PATH

https://git.ruby-lang.org/ruby.git/commit/?id=b1ee7148f8

From b1ee7148f8f9007d7154bf147daecc8c70dc44a3 Mon Sep 17 00:00:00 2001
From: Benoit Daloze <eregontp@g...>
Date: Sat, 13 Jul 2019 15:35:16 +0200
Subject: Improve documentation of $LOAD_PATH


diff --git a/doc/globals.rdoc b/doc/globals.rdoc
index 284f3d7..b1e0369 100644
--- a/doc/globals.rdoc
+++ b/doc/globals.rdoc
@@ -24,11 +24,11 @@ $*::   The same as ARGV. https://github.com/ruby/ruby/blob/trunk/doc/globals.rdoc#L24
 $$::   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
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]