зеркало из https://github.com/github/ruby.git
* load.c (Kernel#autoload?, Module#autoload?): added doc [ruby-core:19983]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
39ea1c8c7c
Коммит
089494fcd1
20
load.c
20
load.c
|
@ -662,7 +662,16 @@ rb_mod_autoload(VALUE mod, VALUE sym, VALUE 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
|
||||
|
@ -693,7 +702,14 @@ rb_f_autoload(VALUE obj, VALUE sym, VALUE file)
|
|||
}
|
||||
|
||||
/*
|
||||
* MISSING: documentation
|
||||
* call-seq:
|
||||
* autoload?(name) => String or nil
|
||||
*
|
||||
* Returns _filename_ to be loaded if _name_ is registered as
|
||||
* +autoload+.
|
||||
*
|
||||
* autoload(:B, "b")
|
||||
* autoload?(:B) # => "b"
|
||||
*/
|
||||
|
||||
static VALUE
|
||||
|
|
Загрузка…
Ссылка в новой задаче