[MacRuby] #1245: alias_method not working in included module

MacRuby ruby-noreply at macosforge.org
Thu Apr 28 09:50:25 PDT 2011


#1245: alias_method not working in included module
--------------------------------+-------------------------------------------
 Reporter:  petr.kaleta@…       |       Owner:  lsansonetti@…        
     Type:  defect              |      Status:  new                  
 Priority:  major               |   Milestone:  MacRuby 0.11         
Component:  MacRuby             |    Keywords:                       
--------------------------------+-------------------------------------------
 Bug reduction:


 {{{
 class Base
   module InstanceMethods
     alias_method :model, :class
   end
 end

 class Model
   include Base::InstanceMethods
 end

 class Item < Model
 end

 puts Item.new.model
 }}}


 Also available as gist https://gist.github.com/946712 Works perfectly in
 pure ruby 1.8.7 & 1.9.2 but not in macruby

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/1245>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list