diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-12-04 15:19:33 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-12-04 15:19:33 +0000 |
commit | f4aca06c84eb57e1b7048e5c28daa03f39258ddc (patch) | |
tree | 9041f38521e1caf750aae67f0930686778c89c97 /object.c | |
parent | 8d69c7f116d8f9053c91d86f437d6bccf4ab4a7b (diff) | |
download | ruby-f4aca06c84eb57e1b7048e5c28daa03f39258ddc.tar.gz |
* intern.h, object.c, variable.c (rb_mod_constants): added an optional
flag to search ancestors, which is defaulted to true, as well as
const_defined? and const_get. [ruby-dev:29989]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2406,7 +2406,7 @@ Init_Object(void) rb_define_method(rb_cModule, "local_methods", rb_class_local_methods, 0); /* in class.c */ - rb_define_method(rb_cModule, "constants", rb_mod_constants, 0); /* in variable.c */ + rb_define_method(rb_cModule, "constants", rb_mod_constants, -1); /* in variable.c */ rb_define_method(rb_cModule, "const_get", rb_mod_const_get, -1); rb_define_method(rb_cModule, "const_set", rb_mod_const_set, 2); rb_define_method(rb_cModule, "const_defined?", rb_mod_const_defined, -1); |