mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
97cdb5ac25
commit
c332266ee0
3 changed files with 17 additions and 3 deletions
|
@ -1,3 +1,11 @@
|
|||
Mon Dec 24 18:06:03 2007 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* 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.
|
||||
|
||||
Mon Dec 24 17:59:29 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* load.c (load_lock): reverted.
|
||||
|
|
4
eval.c
4
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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue