#626: macruby fails Class.class_eval in macruby but not in 1.8 & 1.9? ------------------------------------+--------------------------------------- Reporter: rebo...@… | Owner: lsansone...@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ------------------------------------+--------------------------------------- Description changed by martinlagarde...@…:
Old description: > Macruby fails executing the below, but it works fine in ruby 1.8 and ruby > 1.9, any ideas why? > > module Macro > def foofoo > puts "barbar" > end > end > > Class.class_eval do > include Macro > end > > Array.foofoo > class_eval_test.rb:7:in `<main>': undefined method `foofoo' for > NSMutableArray:Class (NoMethodError) New description: Macruby fails executing the below, but it works fine in ruby 1.8 and ruby 1.9, any ideas why? {{{ #!ruby module Macro def foofoo puts "barbar" end end Class.class_eval do include Macro end Array.foofoo }}} {{{ class_eval_test.rb:7:in `<main>': undefined method `foofoo' for NSMutableArray:Class (NoMethodError) }}} -- -- Ticket URL: <http://www.macruby.org/trac/ticket/626#comment:2> MacRuby <http://macruby.org/> _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel