From: daz Date: 2005-09-03T13:41:26+09:00 Subject: Re: Intercepting, Resuming Overridden Methods I wrote: > > module Yokel > def initialize > @meth = method(:laugh) > self.class.class_eval do > define_method(:laugh) do > puts "Slapping my knee" > @meth.call > puts "Snorting" > end > end > end > end > Shorter (as long as __send__ handles private method calls) ... module Yokel def initialize @meth = method(:laugh) self.class.__send__(:define_method, :laugh) do puts "Slapping my knee" @meth.call puts "Snorting" end end end daz