Re: yields and blocks in Rails

Mark Bush
Thu, 08 May 2008 07:54:31 -0000

Charles wrote:
>
[''a'',''b'',''c'',''d''].comb(3).each
do |element|
>     puts element
> end

You should get a LocalJumpError with this code in Ruby, too.  Remove the
".each" and it should be ok.

--
Posted via http://www.ruby-forum.com/.