[MacRuby] #1252: ERB.new fails with LocalJumpError: no block given

MacRuby ruby-noreply at macosforge.org
Mon May 2 04:15:58 PDT 2011


#1252: ERB.new fails with LocalJumpError: no block given
-------------------------------------+--------------------------------------
 Reporter:  umairsiddique@…          |       Owner:  lsansonetti@…        
     Type:  defect                   |      Status:  new                  
 Priority:  blocker                  |   Milestone:  MacRuby 0.11         
Component:  MacRuby                  |    Keywords:                       
-------------------------------------+--------------------------------------
 ruby 1.9.2p180

 {{{
 > ERB.new("", nil, "%") - works
 > ERB.new("%", nil, "%") -works
 > ERB.new("a", nil, "%") -works
 }}}

 macruby-nightly (05/02)

 {{{
 > ERB.new("", nil, "%") - works
 > ERB.new("%", nil, "%") - works
 > ERB.new("a", nil, "%") - FAILS with "LocalJumpError: no block given"
 }}}

 If first argument is empty or contains the same character (along with any
 others) as the third argument, then it works, otherwise it fails with
 LocalJumpError: no block given.

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



More information about the macruby-tickets mailing list