From: Ross Bamford Date: 2006-01-04T08:47:58+09:00 Subject: Re: Implicit block parameter? On Tue, 03 Jan 2006 23:20:01 -0000, Jacob Fugal wrote: > On 1/3/06, Ross Bamford wrote: >> class String >> def to_proc >> lambda { eval self } >> end >> end >> >> [1,2,3].each &"puts it" >> >> gives: >> >> 1 >> 2 >> 3 >> >> => [1, 2, 3] > > Except, of course, for the exception: > > NameError: undefined local variable or method `it' > > ;) > > Jacob Fugal > Oops, yes I'm working with the Ruby I patched this morning... Sorry for the confusion. -- Ross Bamford - rosco@roscopeco.remove.co.uk