From: Robert Dober Date: 2011-07-29T20:15:56+09:00 Subject: Re: class variables in modules, annoying On Fri, Jul 29, 2011 at 12:32 PM, Iņaki Baz Castillo wrote: > 2011/7/29 7stud -- : >> A class is a module.  So the statement should be: don't use class >> variables period. > > Right. Is it not planned to change the behaviour of class variables in Ruby? I have no idea, you might ask at ruby-core. But there is quite a consensus not to use them. What is your use case? As much as I can guess from your example code, class instance variables should do the trick for you. e.g. module A class << self attr_accessor :a end end HTH Robert > > -- > Iņaki Baz Castillo > > > -- I'm not against types, but I don't know of any type systems that aren't a complete pain, so I still like dynamic typing. -- Alain Kay