From: Jean-Hugues ROBERT Date: 2004-04-29T18:03:46+09:00 Subject: Re: alias or alias_method problem At 16:07 29/04/2004 +0900, Mauricio Fern�ndez wrote: >class Module > def redef(meth, &block) > prev = self.instance_method(meth) > define_method(meth) do |*a| > block.call prev.bind(self), *a > end > end >end > >More details in [ruby-talk:97440]. Cool. I added it (with some refactoring) to my software tools. Thanks Mauricio. Yours, Jean-Hugues ------------------------------------------------------------------------- Web: http://hdl.handle.net/1030.37/1.1 Phone: +33 (0) 4 92 27 74 17