* eval.c (rb_mod_autoload_p, rb_f_autoload_p): added rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
68655d09a1
commit
3da52c987f
23
eval.c
23
eval.c
@ -7945,7 +7945,7 @@ Init_eval()
|
|||||||
* mod.autoload(name, filename) => nil
|
* mod.autoload(name, filename) => nil
|
||||||
*
|
*
|
||||||
* Registers _filename_ to be loaded (using <code>Kernel::require</code>)
|
* Registers _filename_ to be loaded (using <code>Kernel::require</code>)
|
||||||
* the first time that _module_ (which may be a <code>String</code> or
|
* the first time that _name_ (which may be a <code>String</code> or
|
||||||
* a symbol) is accessed in the namespace of _mod_.
|
* a symbol) is accessed in the namespace of _mod_.
|
||||||
*
|
*
|
||||||
* module A
|
* module A
|
||||||
@ -7968,7 +7968,16 @@ rb_mod_autoload(mod, sym, file)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* MISSING: documentation
|
* call-seq:
|
||||||
|
* mod.autoload?(name) => String or nil
|
||||||
|
*
|
||||||
|
* Returns _filename_ to be loaded if _name_ is registered as
|
||||||
|
* +autoload+ in the namespace of _mod_.
|
||||||
|
*
|
||||||
|
* module A
|
||||||
|
* end
|
||||||
|
* A.autoload(:B, "b")
|
||||||
|
* A.autoload?(:B) # => "b"
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
@ -7998,9 +8007,15 @@ rb_f_autoload(obj, sym, file)
|
|||||||
return rb_mod_autoload(ruby_cbase, sym, file);
|
return rb_mod_autoload(ruby_cbase, sym, file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* MISSING: documentation
|
* call-seq:
|
||||||
|
* autoload(module) => filename or nil
|
||||||
|
*
|
||||||
|
* Returns _filename_ to be loaded if _module_ is registered as
|
||||||
|
* +autoload+.
|
||||||
|
*
|
||||||
|
* autoload(:MyModule, "/usr/local/lib/modules/my_module.rb")
|
||||||
|
* autoload?(:MyModule) # => "/usr/local/lib/modules/my_module.rb"
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user