Chiyuan Zhang
12/18/2007 6:20:00 AM
Hmm... what i'm looking for is just like super. As all you mentioned
above, maybe there's no such feature yet. :)
2007/12/18, Gary Wright <gwtmp01@mac.com>:
>
> On Dec 17, 2007, at 3:11 AM, Chiyuan Zhang wrote:
> > def bar
> > foo { yield }
> > end
> >
> > but that create another block, not the original one.
>
> This is the only technique I'm aware of. I it
> is still faster than explicitly reifying the outer block
> before calling foo.
>
> Somewhat related: Super will pass along an implicit
> block. To disable this do:
>
> super(a, b, &nil)
>
> Gary Wright
>
>
>
>