From: "T. Onoma" Date: 2004-08-16T07:24:23+09:00 Subject: Re: Opinion on ClassInherit Include On Saturday 14 August 2004 11:47 am, Anders Engstræ—¦m wrote: > The way I handle these situations is: > > module MyMod > > class << self > def included(klass) > # Also extend the class with > # the features in ClassMixin > klass.__send__(:extend, ClassMixin) > end > end > > module ClassMixin > attr_accessor :x > def hix > puts "Hi, #{@x}." > end > end > > def hey > puts "Me, too" > end > end Using the callback here. That works too. I'm wondering if this kind of functionality is desireable enough to warrent some kind of RCR. -- T.