diff options
author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-01-07 12:42:48 +0000 |
---|---|---|
committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-01-07 12:42:48 +0000 |
commit | 19768b6cacb1319f34944a0dc5e0bbe099d2d18e (patch) | |
tree | dff9cb9190b86c36c642dd25c18f8a8bd777fa23 /proc.c | |
parent | 4722c20661093f5071701941bc2f7b519f2a7283 (diff) | |
download | ruby-19768b6cacb1319f34944a0dc5e0bbe099d2d18e.tar.gz |
* vm_method.c (Init_eval_method): main.public and main.private
should be private.
* proc.c (Init_Proc): main.define_method should be private.
* test/ruby/test_module.rb: related test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'proc.c')
-rw-r--r-- | proc.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2286,7 +2286,8 @@ Init_Proc(void) /* Kernel */ rb_define_method(rb_mKernel, "define_singleton_method", rb_obj_define_method, -1); - rb_define_singleton_method(rb_vm_top_self(), "define_method", top_define_method, -1); + rb_define_private_method(rb_singleton_class(rb_vm_top_self()), + "define_method", top_define_method, -1); } /* |