[ruby-cvs:70157] nobu:r63067 (trunk): Fix Kernel#singleton_method with Module#Prepend

nobu at ruby-lang.org nobu at ruby-lang.org
Tue Apr 3 15:57:43 JST 2018


nobu	2018-04-03 15:57:43 +0900 (Tue, 03 Apr 2018)

  New Revision: 63067

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

  Log:
    Fix Kernel#singleton_method with Module#Prepend
    
    * proc.c (rb_obj_singleton_method): search the method entry from
      the origin class, for fix prepended modules.  [Bug #14658]
    
    From: Vasiliy Ermolovich <younash at gmail.com>

  Modified files:
    trunk/proc.c
    trunk/test/ruby/test_method.rb


More information about the ruby-cvs mailing list