diff options
| author | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-23 19:45:37 +0000 |
|---|---|---|
| committer | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-23 19:45:37 +0000 |
| commit | ead3bbfcfe8ddd15e7253835c9096d939e131775 (patch) | |
| tree | 74a237639ce87bb974f01a6a775df9fe4b104742 | |
| parent | eed520c8d28d8d1410db4394aa8d0537bf3f4b82 (diff) | |
| download | ruby-ead3bbfcfe8ddd15e7253835c9096d939e131775.tar.gz ruby-ead3bbfcfe8ddd15e7253835c9096d939e131775.tar.xz ruby-ead3bbfcfe8ddd15e7253835c9096d939e131775.zip | |
* load.c (Kernel#autoload?, Module#autoload?): added doc [ruby-core:19983]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | load.c | 20 |
1 files changed, 18 insertions, 2 deletions
@@ -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 |
