[DOC] relative filename Kernel#.require
and Kernel#.load
[ci skip]
This commit is contained in:
parent
6a0405def2
commit
4cb8b49d41
Notes:
git
2020-06-01 09:21:19 +09:00
2
load.c
2
load.c
@ -683,6 +683,7 @@ rb_load_protect(VALUE fname, int wrap, int *pstate)
|
|||||||
* If the filename neither resolves to an absolute path nor starts with
|
* If the filename neither resolves to an absolute path nor starts with
|
||||||
* './' or '../', the file will be searched for in the library
|
* './' or '../', the file will be searched for in the library
|
||||||
* directories listed in <code>$LOAD_PATH</code> (<code>$:</code>).
|
* directories listed in <code>$LOAD_PATH</code> (<code>$:</code>).
|
||||||
|
* If the filename starts with './' or '../', resolution is based on Dir.pwd.
|
||||||
*
|
*
|
||||||
* If the optional _wrap_ parameter is +true+, the loaded script will
|
* If the optional _wrap_ parameter is +true+, the loaded script will
|
||||||
* be executed under an anonymous module, protecting the calling
|
* be executed under an anonymous module, protecting the calling
|
||||||
@ -789,6 +790,7 @@ load_unlock(const char *ftptr, int done)
|
|||||||
* If the filename neither resolves to an absolute path nor starts with
|
* If the filename neither resolves to an absolute path nor starts with
|
||||||
* './' or '../', the file will be searched for in the library
|
* './' or '../', the file will be searched for in the library
|
||||||
* directories listed in <code>$LOAD_PATH</code> (<code>$:</code>).
|
* directories listed in <code>$LOAD_PATH</code> (<code>$:</code>).
|
||||||
|
* If the filename starts with './' or '../', resolution is based on Dir.pwd.
|
||||||
*
|
*
|
||||||
* If the filename has the extension ".rb", it is loaded as a source file; if
|
* If the filename has the extension ".rb", it is loaded as a source file; if
|
||||||
* the extension is ".so", ".o", or ".dll", or the default shared library
|
* the extension is ".so", ".o", or ".dll", or the default shared library
|
||||||
|
Loading…
x
Reference in New Issue
Block a user