From: dblack@... Date: 2006-03-16T07:19:08+09:00 Subject: Re: executing a block in the context of receiver Hi -- On Thu, 16 Mar 2006, Ross Bamford wrote: > Probably irrelevant, but from what I can gather, instance_eval will pass > the new self in as a block parameter, too: > > Object.new.instance_eval { |me| self == me } > # => true > > Though this doesn't seem to be documented...? Interesting -- definitely relevant, too, in the sense that my correction was wrong. I don't remember seeing that documented either. David -- David A. Black (dblack@wobblini.net) Ruby Power and Light, LLC (http://www.rubypowerandlight.com) "Ruby for Rails" chapters now available from Manning Early Access Program! http://www.manning.com/books/black