From: Brian Candler Date: 2003-07-30T16:34:14+09:00 Subject: Re: Passing a method block to a parent class On Wed, Jul 30, 2003 at 11:09:47AM +0900, Mark J. Reed wrote: > If you declare a method thus: > > def method2 (argument, &block) > end > > Then any block associated with a call to the method will be turned into > a Proc object and assigned to the &-marked parameter (which must be last > in the list). Like *, this works both ways; if you pass a Proc as the > last parameter of a method call and put a & in front of it, the called > method sees it as a block. > > So this should do what you want: > > class B < A > def method1( argument, &block ) > puts argument > super.method1( argument, &block ) > end > end Or more likely: class B < A def method1( argument, &block ) puts argument super( argument, &block ) end end Regards, Brian.