[ruby-cvs:56630] shugo:r49480 (trunk): * vm_method.c (remove_method): When remove refined

shugo at ruby-lang.org shugo at ruby-lang.org
Tue Feb 3 15:26:50 JST 2015


shugo	2015-02-03 15:26:48 +0900 (Tue, 03 Feb 2015)

  New Revision: 49480

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49480

  Log:
    * vm_method.c (remove_method): When remove refined
      method, raise a NameError if the method is not
      defined in refined class.
    
      But if the method is defined in refined class,
      it should keep refined method and remove original
      method.
    
      Patch by Seiei Higa. [ruby-core:67722] [Bug #10765]

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_refinement.rb
    trunk/vm_method.c


More information about the ruby-cvs mailing list