From: chiaro scuro Date: 2006-05-01T05:30:35+09:00 Subject: Re: from block to code (also: how to get the bindings of a block) ------=_Part_3205_1213877.1146429031723 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 4/30/06, Eric Hodel wrote: > > On Apr 27, 2006, at 12:35 AM, chiaro scuro wrote: > > > Does anyone know how to convert a block to a string representation of > > the code it contains? > > lib/r2chacks.rb in ZenHacks has this. I'll check it out thanks. If you need the bindings from a proc you are probably trying to solve > the wrong problem. I would normally agree with you, but this is not a design problem or a domain-conceptualization problem. It's a language-twisting problem that imposes otherwise unimportant constraints on what I can and cannot do. -- Chiaroscuro --- Liquid Development: http://liquiddevelopment.blogspot.com/ ------=_Part_3205_1213877.1146429031723--