From: Yukihiro Matsumoto Date: 2006-06-14T23:15:39+09:00 Subject: Re: Why the lack of mixing-in support for Class methods? Hi, In message "Re: Why the lack of mixing-in support for Class methods?" on Wed, 14 Jun 2006 22:37:24 +0900, transfire@gmail.com writes: |If you allow #class_extension (or whatever you want to call it) to also |take a list of modules in addition to the block, then you'd effectively |have it both ways. Ex- | | module Moo | module ClassMethods | def cm | end | end | class_extension ClassMethods | end I think class_extension (or whatever) plus and include will do. module Moo module ClassMethods def cm end end class_extension do include ClassMethods end end |T. | |