From: "David A. Black" Date: 2008-05-07T08:11:31+09:00 Subject: Re: attr_accessor for class variable? Hi -- On Wed, 7 May 2008, Robert Dober wrote: > On Mon, May 5, 2008 at 5:35 PM, Robert Klemme > wrote: > >> You can just use attr_* family of methods - but you need to apply them to a >> different object, namely the singleton class of the class object: > Robert you just defined accessors to class instance variables, not > class variables. I think Robert was suggesting not using class variables. > Of course one should always use class instance variables instead of > class variables. I believe that class variables are evil and class > instance variables are good ;). > > If however class instance variables are used and there is nothing OP I think you mean class variables :-) > can do about it, he can implement the caccessor methods as in Rails. David -- Rails training from David A. Black and Ruby Power and Light: INTRO TO RAILS June 9-12 Berlin ADVANCING WITH RAILS June 16-19 Berlin INTRO TO RAILS June 24-27 London (Skills Matter) See http://www.rubypal.com for details and updates!