summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-11 06:14:16 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-11 06:14:16 +0000
commit10ba3bdd533389fbd037be26930795d80d8f7104 (patch)
tree78410f24efd4a67e6f936fe2fd7ce9dbc4ff5718 /eval.c
parentb0c8aeeb9caa9b796892c30f6c675cc2191e89b5 (diff)
* 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.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/eval.c b/eval.c
index f7c0a8a83b..9288917b27 100644
--- a/eval.c
+++ b/eval.c
@@ -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);