[MacRuby] #1437: Object#method.call doesn't pass block argument

MacRuby ruby-noreply at macosforge.org
Wed Jan 25 01:11:55 PST 2012


#1437: Object#method.call doesn't pass block argument
--------------------------------------+-------------------------------------
 Reporter:  gabriel.gilder@…          |       Owner:  lsansonetti@…        
     Type:  defect                    |      Status:  new                  
 Priority:  minor                     |   Milestone:                       
Component:  MacRuby                   |    Keywords:                       
--------------------------------------+-------------------------------------
 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" }

 And the block will be called. But in MacRuby, the block is not passed to
 the method by .call().

 I've put together a simple example: https://gist.github.com/1675279

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



More information about the macruby-tickets mailing list