From: Daniel Schierbeck Date: 2006-06-16T01:18:24+09:00 Subject: Re: Why the lack of mixing-in support for Class methods? ara.t.howard@noaa.gov wrote: > is this by design? > > harp:~ > cat b.rb > require 'class_extension' > module M > class_extension{ attr_accessor 'a' } > end > M.a # exception! > > > harp:~ > ruby b.rb > b.rb:6: undefined method `a' for M:Module (NoMethodError) > > i lost track of whether the module should respond to this or not... (the > thread > is looooong). Hi, Yes, it's by design. Originally I extended the class that defined the class extension, but per the request of some, I removed it again. This should sort it out module M class_extension{ attr_accessor :a, :b } extend class_extension end M.a = 42 Cheers, Daniel