Project

General

Profile

« Previous | Next » 

Revision 25f5dd67

Added by ko1 (Koichi Sasada) over 8 years ago

  • vm.c (vm_define_method): do not use current CREF immediately,
    but check CREF in environment or methods. Methods defined in methods
    should be public.
    [Bug #11571]

  • vm_method.c (rb_scope_module_func_check): check CREF in env or me.
    if CREF is contained by `me', then return FALSE.

  • test/ruby/test_method.rb: add a test.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e