From: Gavin Sinclair Date: 2003-11-22T22:37:09+09:00 Subject: Re: Method wrapper question (was "stereotyping (was ...)) On Saturday, November 22, 2003, 11:47:50 PM, ts wrote: >>>>>> "G" == Gavin Sinclair writes: G>> Do both the :pre method wrappers get executed? If so, in what order? G>> If not, which one does? And why not execute both? > I really hope that ruby will give an message (method redefined) : I don't > want to learn a new language and you have module to do what you want. Well, I'm not sure what I want in this case. Wrapping methods is a great idea to satisfy a common idiom. I think it does seem a bit wrong not to allow multiple wrappers, though. The idiom as it stands (alias method to something else, and call alias from redefined method) can be used to wrap a method several times if desired. What method are you talking about? Oh, aspectr I suppose. Gavin