From: James Edward Gray II Date: 2006-06-09T21:41:59+09:00 Subject: Re: Why the lack of mixing-in support for Class methods? On Jun 9, 2006, at 5:58 AM, dblack@wobblini.net wrote: > Then again, I'm not sure what's wrong with > "extend", so I'm probably a bit out of the loop on this discussion. Well, extend takes the instance methods of a module and makes them class methods on the receiver. People are asking for a natural way to mix in the class methods of a module, preferably while mixing in the instance methods as well (as include currently does). In short, they want to turn this idiom into a one liner: module MixinForInstanceAndClassMethods module ClassMethods # ... class methods ... end extend ClassMethods def self.included(receiver) receiver.extend(ClassMethods) end # ... instance methods ... end class Receiver include MixinForInstanceAndClassMethods end Hope that helps. James Edward Gray II