Hi,
In message "[ruby-talk:4885] Re: Re-binding a block"
on 00/09/12, Dave Thomas <Dave / thomases.com> writes:
|> Here's the trick. Don't tell anybody. ;-)
|>
|> self.instance_eval(&@@block)
|
|Ah! Punctuation!
I said don't tell.
|Does this work because the binding takes place whenever a block is
|converted to a proc?
No. It's because instance_eval replaces the `self' (just self, not
whole bindings).
matz.