From: Dan Doel Date: 2003-08-26T05:54:51+09:00 Subject: Re: Aspect oriented Everything? Dan Doel wrote: > P.S.: I tried doing this by putting the new "def bar(a) ..." stuff in > the instance methods of the Aspect module, > but it doesn't seem to add them. I'm calling super in > append_features, and I tried doing "super c", but that > didn't work either. What am I doing wrong? Found my error: module Aspect def Aspect.append_features(c) c.class_eval do alias_method :oldbar, :bar remove_method :bar end super end def bar(a) puts a oldbar a end end