summaryrefslogtreecommitdiff
path: root/eval_method.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval_method.c')
-rw-r--r--eval_method.c8
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);
+}