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.
|
|