From: Dave Thomas Date: 2000-03-17T08:48:15-06:00 Subject: [ruby-talk:01973] Re: Class Variables Hugh Sasse Staff Elec Eng writes: > > class Foo > > > > attr_accessor :setting1, :setting2 > > > > def initialize > > @setting1 = 2 > > @setting2 = 5 > > end > > end > > Are these not accessing Instance variables, not class variables? I assume > from the @ and that there is talk of 1.5.x introducing @@variables, that > these are not true class variables, allowing instances of a class to share > a variable between them. Yes, but as the class constant -> pseudo class variable hack is in the FAQ, I assumed that he was after attribute setters. Dave