From: Phrogz Date: 2007-02-09T08:50:07+09:00 Subject: Re: How to "pass" the current binding's block to some other method? On Feb 8, 4:11 pm, "Lyle Johnson" wrote: > On 2/8/07, Phrogz wrote: > > > Do you feel that this: > > def try( hash, &block ) > > old_try( hash[:x],hash[:y],hash[:z],&block ) > > end > > is somehow changing its signature? > > For the purposes of this discussion, yes. Perhaps a better way to > phrase the question is whether there's any way to do it without > modifying the original source code for try(). To be clear: you *only* need to modify your new (overriding) try method with the &block notation. The original try method's source code remains unchanged. (I hope this is what you want. If you can't modify the source code for your overriding method, I'm not sure how you would intend to use any code that would pass the block along. :)