mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* vm_eval.c (Init_vm_eval): define module_eval, class_eval and eval
here for rdoc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2a608fed88
commit
4efc3f78b0
3 changed files with 8 additions and 3 deletions
3
eval.c
3
eval.c
|
@ -1132,7 +1132,6 @@ Init_eval(void)
|
|||
rb_define_virtual_variable("$@", errat_getter, errat_setter);
|
||||
rb_define_virtual_variable("$!", errinfo_getter, 0);
|
||||
|
||||
rb_define_global_function("eval", rb_f_eval, -1);
|
||||
rb_define_global_function("iterator?", rb_f_block_given_p, 0);
|
||||
rb_define_global_function("block_given?", rb_f_block_given_p, 0);
|
||||
|
||||
|
@ -1148,8 +1147,6 @@ Init_eval(void)
|
|||
rb_define_private_method(rb_cModule, "append_features", rb_mod_append_features, 1);
|
||||
rb_define_private_method(rb_cModule, "extend_object", rb_mod_extend_object, 1);
|
||||
rb_define_private_method(rb_cModule, "include", rb_mod_include, -1);
|
||||
rb_define_method(rb_cModule, "module_eval", rb_mod_module_eval, -1);
|
||||
rb_define_method(rb_cModule, "class_eval", rb_mod_module_eval, -1);
|
||||
|
||||
rb_undef_method(rb_cClass, "module_function");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue