diff options
author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-11 06:14:16 +0000 |
---|---|---|
committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-11 06:14:16 +0000 |
commit | 10ba3bdd533389fbd037be26930795d80d8f7104 (patch) | |
tree | 78410f24efd4a67e6f936fe2fd7ce9dbc4ff5718 /eval.c | |
parent | b0c8aeeb9caa9b796892c30f6c675cc2191e89b5 (diff) | |
download | ruby-10ba3bdd533389fbd037be26930795d80d8f7104.tar.gz |
* eval.c (top_using): remove Kernel#using, and add main.using instead.
* test/ruby/test_refinement.rb: related test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1386,7 +1386,7 @@ top_include(int argc, VALUE *argv, VALUE self) */ static VALUE -f_using(VALUE self, VALUE module) +top_using(VALUE self, VALUE module) { NODE *cref = rb_vm_cref(); @@ -1593,8 +1593,7 @@ Init_eval(void) rb_define_singleton_method(rb_cModule, "constants", rb_mod_s_constants, -1); rb_define_singleton_method(rb_vm_top_self(), "include", top_include, -1); - - rb_define_global_function("using", f_using, 1); + rb_define_singleton_method(rb_vm_top_self(), "using", top_using, 1); rb_define_method(rb_mKernel, "extend", rb_obj_extend, -1); |