From: Yukihiro Matsumoto Date: 2006-06-16T01:19:44+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 01:10:53 +0900, ara.t.howard@noaa.gov writes: |is this by design? | | harp:~ > cat b.rb | require 'class_extension' | module M | class_extension{ attr_accessor 'a' } | end | M.a # exception! Yes. class_extension add features to the target class but not to the module itself. class C include M end M.a = 42 p M.a # => 42 matz.