[MacRuby-devel] [MacRuby] #626: macruby fails Class.class_eval in macruby but not in 1.8 & 1.9?
MacRuby
ruby-noreply at macosforge.org
Thu Mar 25 17:26:06 PDT 2010
#626: macruby fails Class.class_eval in macruby but not in 1.8 & 1.9?
------------------------------------+---------------------------------------
Reporter: rebotfc@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords:
------------------------------------+---------------------------------------
Description changed by martinlagardette@…:
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/>
More information about the MacRuby-devel
mailing list