[MacRuby-devel] Bug with #method.call and blocks
Gabriel Gilder
gabriel.gilder at gmail.com
Tue Jan 24 23:59:16 PST 2012
Hi all, I have a feeling this might be a known issue, but I couldn't find any discussion of it.
I've put together a simple example: https://gist.github.com/1675279
Basically, if I have a class Foo, with an instance method bar that yields to a block, in MRI I can do this:
Foo.new.method(:bar).call() { puts "something" }
But in MacRuby, the block is not passed to the method by .call().
Again, sorry if this is a known issue...
-Gabriel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20120124/7b611858/attachment.html>
More information about the MacRuby-devel
mailing list