From: ts Date: 2003-07-05T20:45:08+09:00 Subject: Re: Help with UnboundMethod#bind error >>>>> "P" == Pit Capitain writes: P> I was trying to find a way to override a method without having to P> find a unique name. Instead I wanted to be able to simply call the P> old implementation with "super". Don't search what you want is called hook ... svg% cat b.rb #!./ruby class C def m puts "original" end end puts "=====================" C.new.m puts "=====================" module M def m:before puts "before(1)" end end class C include M end C.new.m puts "=====================" class C def m:before puts "before(2)" end end C.new.m puts "=====================" svg% svg% b.rb ===================== original ===================== before(1) original ===================== before(2) before(1) original ===================== svg% Guy Decoux