mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* eval.c (Init_eval): Make Module#include and Module#prepend public
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1908874bf4
commit
26766ee89c
3 changed files with 21 additions and 2 deletions
5
eval.c
5
eval.c
|
@ -1592,11 +1592,12 @@ Init_eval(void)
|
|||
rb_define_global_function("__callee__", rb_f_callee_name, 0);
|
||||
rb_define_global_function("__dir__", f_current_dirname, 0);
|
||||
|
||||
rb_define_method(rb_cModule, "include", rb_mod_include, -1);
|
||||
rb_define_method(rb_cModule, "prepend", rb_mod_prepend, -1);
|
||||
|
||||
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_private_method(rb_cModule, "prepend_features", rb_mod_prepend_features, 1);
|
||||
rb_define_private_method(rb_cModule, "prepend", rb_mod_prepend, -1);
|
||||
rb_define_private_method(rb_cModule, "refine", rb_mod_refine, 1);
|
||||
rb_define_private_method(rb_cModule, "using", mod_using, 1);
|
||||
rb_undef_method(rb_cClass, "refine");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue