From: Jim Weirich Date: 2006-02-09T09:46:16+09:00 Subject: Re: how to do instance_eval with arguments Yukihiro Matsumoto wrote: > writes: > | > |I'm prototyping a DSL and came across a situtation where I have a lambda > |that I would like to give to instance_eval, but the lambda takes > |arguments. Instance_eval will not supply any arguments when evaluating > |the lambda and I don't see a straightforward way around this. > | > |Any suggestions? > > CVS HEAD (1.9) has instance_exec method that works exactly what you > want. Excellent! I think Matz's time machine is every bit as good as Guido's[1]. -- -- Jim Weirich [1] http://www.catb.org/jargon/html/G/Guido.html -- Posted via http://www.ruby-forum.com/.