From: Dave Thomas Date: 2000-03-16T16:13:15-06:00 Subject: [ruby-talk:01931] Re: Class Variables "David Douthitt" writes: > I DID find class constants (see I do read the manual! :-) > > But I ALSO want to be able to do: > > fooey.setting1 = 6; Ah-ha! In that case, you want to use attributes class Foo attr_accessor :setting1, :setting2 def initialize @setting1 = 2 @setting2 = 5 end end c = Foo.new p c.setting1 + c.setting2 c.setting2 = 7 p c.setting1 + c.setting2 Dave