[MacRuby] #1250: Converts hash argument to array.

MacRuby ruby-noreply at macosforge.org
Sat Apr 30 23:14:06 PDT 2011


#1250: Converts hash argument to array.
------------------------------+---------------------------------------------
 Reporter:  kouji@…           |       Owner:  lsansonetti@…        
     Type:  defect            |      Status:  new                  
 Priority:  blocker           |   Milestone:  MacRuby 0.11         
Component:  MacRuby           |    Keywords:  rails                
------------------------------+---------------------------------------------
 The following code does not perform as expected.
 {{{
 def f(a, b = {}, &block)
   p([a, b])
 end

 block = Proc.new {}
 f(:a, :b => true, &block)
 }}}

 Result:
 {{{
 $ ruby19 t.rb
 [:a, {:b=>true}]

 $ macruby t.rb
 [:a, [:b, true]]
 }}}

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



More information about the macruby-tickets mailing list