From: Stephen White Date: 2001-08-23T06:57:38+09:00 Subject: [ruby-talk:20127] Another Possible RCR - Wrappers via Mixins The main difference between mix-ins and multiple inheritence is (to my understanding) that parent classes do not call child code, but mix-ins do. 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. Eg: �module Test ���def fred *args �����puts "1" �����super *args �����puts "2" ���end �end �include Test �def fred str ���puts str �end �fred "hello world" will print �1 �hello world �2 This would also work for dynamic methods created in the Mixin namespace, enabling AOP style wrapping. That'd be neater than all the method renaming. :)