On Jun 18, 2009, at 2:09 AM, Eloy Duran wrote:
I had a little play with IRB. With some “easy” workarounds, plain
Ruby at least, I was able to get IRB in the right context. However,
on MacRuby (at least on 0.5), this doesn't work completely, as the
binding of a proc returns the wrong context:
% ruby -e "class Foo; def initialize; p eval('self', (proc
{}).binding); end; end; Foo.new"
#<Foo:0x29324>
% ruby19 -e "class Foo; def initialize; p eval('self', (proc
{}).binding); end; end; Foo.new"
#<Foo:0x3e7178>
% ./miniruby -e "class Foo; def initialize; p eval('self', (proc
{}).binding); end; end; Foo.new"
#<Proc:0x80004dfa0>
Fixed in r1878 :)
Laurent
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel