From: Robert Klemme Date: 2004-01-25T22:14:56+09:00 Subject: Re: determine method passed and determine the receiver that received the method "Mauricio Fern�ndez" schrieb im Newsbeitrag news:20040124235621.GA7427@student.ei.uni-stuttgart.de... > On Sun, Jan 25, 2004 at 05:04:58AM +0900, Robert Klemme wrote: > > Cancel that. This works: > > > > class Module > > def notify(sym) > > new_sym = "#{sym}_old".intern > > alias_method new_sym.to_s, sym.to_s > > > > define_method sym do |*args| > > Isn't it a shame that you cannot propagate blocks with define_method? Yeah, that's true. I ran into it while figuring how to do it. Regards robert