[MacRuby-devel] [MacRuby] #718: Defining a method on class Class also defines it on Module and vice versa

MacRuby ruby-noreply at macosforge.org
Fri May 14 16:18:21 PDT 2010


#718: Defining a method on class Class also defines it on Module and vice versa
-------------------------------------+--------------------------------------
 Reporter:  eloy.de.enige@…          |       Owner:  eloy.de.enige@…        
     Type:  defect                   |      Status:  new                    
 Priority:  blocker                  |   Milestone:                         
Component:  MacRuby                  |    Keywords:  mocha                  
-------------------------------------+--------------------------------------
 {{{
 % cat t.rb
 class Module
   def foo
     Module
   end
 end

 class Class
   def foo
     Class
   end
 end

 p Module.new.foo
 p Class.new.foo

 % macruby t.rb
 Class
 Class
 }}}

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



More information about the MacRuby-devel mailing list