From: Yukihiro Matsumoto Date: 2006-06-16T19:14:27+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 Fri, 16 Jun 2006 18:56:23 +0900, dblack@wobblini.net writes: |> class C |> include M |> end |> M.a = 42 |> p M.a # => 42 | |Will this happen if the module is included in another module? If so, |I'm wondering whether a more generic name, without "class" in it, |could be used instead of "class_extension". That's where I am wondering. Using the Daniel's code: module M class_extension do def foo end end end module M2 include M end class C include M2 end M.foo # => NoMethodError M2.foo # => Error? (should it affect modules?) C.foo # => Error? (should class_extension be propagated?) If 'class_extension' affects modules as well, do you think of any more generic name, in place of "class" extension? matz.