From: John Wilger Date: 2007-03-16T10:50:22+09:00 Subject: Re: General Ruby OOP Question - using inheritance or include for shared attributes On Mar 15, 5:34 am, Bob Hutchison wrote: > module A > def self.included(other) > super > other.extend(ClassMethods) > end > > module ClassMethods > def foo > puts "bar" > end > end > end > > Is a little cleaner I think. Indeed. Both the code and the indentation (I swear I don't know where all those spaces came from!) I suppose that's what I get for trying to program in an email at the end of a very long day. :-(