diff options
author | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-29 17:47:59 +0000 |
---|---|---|
committer | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-29 17:47:59 +0000 |
commit | 0c03a89ecd71ebdc1ea983264424ba5c46f8c4e1 (patch) | |
tree | f8f8bafda5ff2fcbe9eb8c71b51440bc270d01ad /vm_method.c | |
parent | 6186e5201afaf517357e748689c7c4fdca8a0f9d (diff) |
Make Module#{define|alias|undef|remove}_method public [#14133]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
-rw-r--r-- | vm_method.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vm_method.c b/vm_method.c index edbe6038dd..f6024320a3 100644 --- a/vm_method.c +++ b/vm_method.c @@ -2085,9 +2085,9 @@ Init_eval_method(void) rb_define_method(rb_mKernel, "respond_to?", obj_respond_to, -1); rb_define_method(rb_mKernel, "respond_to_missing?", obj_respond_to_missing, 2); - 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); + rb_define_method(rb_cModule, "remove_method", rb_mod_remove_method, -1); + rb_define_method(rb_cModule, "undef_method", rb_mod_undef_method, -1); + rb_define_method(rb_cModule, "alias_method", rb_mod_alias_method, 2); rb_define_private_method(rb_cModule, "public", rb_mod_public, -1); rb_define_private_method(rb_cModule, "protected", rb_mod_protected, -1); rb_define_private_method(rb_cModule, "private", rb_mod_private, -1); |