summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-24 09:07:20 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-24 09:07:20 +0000
commit400be7a886dbc00f5be31d70a648892fcb2253e3 (patch)
tree3bb423298b34e15af7439093d4de144a929f916b /eval.c
parent0f171b400c6183ac5ff207d470e9a05891969350 (diff)
downloadruby-400be7a886dbc00f5be31d70a648892fcb2253e3.tar.gz
ruby-400be7a886dbc00f5be31d70a648892fcb2253e3.tar.xz
ruby-400be7a886dbc00f5be31d70a648892fcb2253e3.zip
* eval_method.c (Init_eval_method): extracted from Init_eval
for rdoc to find rb_mod_remove_method, rb_mod_undef_method and rb_mod_alias_method. * eval.c (Init_eval): call Init_eval_method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/eval.c b/eval.c
index 4c80c4afe..021f9dde0 100644
--- a/eval.c
+++ b/eval.c
@@ -2753,9 +2753,7 @@ Init_eval(void)
rb_undef_method(rb_cClass, "module_function");
- rb_define_private_method(rb_cModule, "remove_method", rb_mod_remove_method, -1);
- rb_define_private_method(rb_cModule, "undef_method", rb_mod_undef_method, -1);
- rb_define_private_method(rb_cModule, "alias_method", rb_mod_alias_method, 2);
+ Init_eval_method();
rb_define_singleton_method(rb_cModule, "nesting", rb_mod_nesting, 0);
rb_define_singleton_method(rb_cModule, "constants", rb_mod_s_constants, -1);