diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-24 09:07:20 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-24 09:07:20 +0000 |
commit | c332266ee0d026340e369c9b67d01837ba2ed2e4 (patch) | |
tree | 3bb423298b34e15af7439093d4de144a929f916b /eval_method.c | |
parent | 97cdb5ac25ddcf0e7664867f39ccaccc4d139c0e (diff) | |
download | ruby-c332266ee0d026340e369c9b67d01837ba2ed2e4.tar.gz |
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@14594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval_method.c')
-rw-r--r-- | eval_method.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/eval_method.c b/eval_method.c index 94b39f04b1..34a65b7fa0 100644 --- a/eval_method.c +++ b/eval_method.c @@ -639,3 +639,11 @@ rb_mod_alias_method(VALUE mod, VALUE newname, VALUE oldname) rb_alias(mod, rb_to_id(newname), rb_to_id(oldname)); return mod; } + +static void +Init_eval_method(void) +{ + 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); +} |