From 19ddfc2483bb82cfb241a58d4b25956f7b79d1ad Mon Sep 17 00:00:00 2001 From: shugo Date: Thu, 2 Aug 2012 11:34:19 +0000 Subject: * eval.c (rb_mod_using): new method Module#using. [experimental] * eval.c (rb_mod_refine): new method Module#refine. [experimental] * eval.c (f_using): new method Kernel#using. [experimental] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- class.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'class.c') diff --git a/class.c b/class.c index 025f02f6da..8cfb0b123d 100644 --- a/class.c +++ b/class.c @@ -620,8 +620,8 @@ rb_define_module_id_under(VALUE outer, ID id) return module; } -static VALUE -include_class_new(VALUE module, VALUE super) +VALUE +rb_include_class_new(VALUE module, VALUE super) { VALUE klass = class_alloc(T_ICLASS, rb_cClass); @@ -703,7 +703,7 @@ include_modules_at(VALUE klass, VALUE c, VALUE module) break; } } - c = RCLASS_SUPER(c) = include_class_new(module, RCLASS_SUPER(c)); + c = RCLASS_SUPER(c) = rb_include_class_new(module, RCLASS_SUPER(c)); if (RMODULE_M_TBL(module) && RMODULE_M_TBL(module)->num_entries) changed = 1; skip: -- cgit v1.2.3