From: Avi Bryant Date: 2001-08-23T07:15:59+09:00 Subject: [ruby-talk:20129] Re: Another Possible RCR - Wrappers via Mixins On Thu, 23 Aug 2001, Stephen White wrote: > Given this, perhaps mix-ins are a good place to do AOP style wrappers? > If a mix-in has a method with the same name as the class being mixed > into, then the mix-in code gets called then super's up. You're suggesting that mix-ins be added below the class they're being mixed into, rather than above it. The main problem I can see with this is that it prevents the class from overriding methods in the mixin. However, it might be interesting to figure out a way of allowing subclass-mixins as well as superclass-mixins. It seems like there ought to be a (maybe inefficient) way of doing this with singleton classes, at least.