[MacRuby-devel] [MacRuby] #371: Module methods included in the class Module are not visible to other classes.

MacRuby ruby-noreply at macosforge.org
Fri Oct 9 04:09:40 PDT 2009


#371: Module methods included in the class Module are not visible to other
classes.
---------------------------------+------------------------------------------
 Reporter:  mred@…               |       Owner:  lsansonetti@…        
     Type:  defect               |      Status:  new                  
 Priority:  blocker              |   Milestone:                       
Component:  MacRuby              |    Keywords:                       
---------------------------------+------------------------------------------
 {{{
 module A
   def b
     puts 'b'
   end
 end

 class Module
   include A
 end

 class C
   b()
 end
 }}}

 Running the above on Ruby 1.9 prints out 'b'.  Running it on MacRuby 0.5
 generates an "undefined method `b' for C:Class (NoMethodError)"

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



More information about the MacRuby-devel mailing list