From: David Douthitt Date: 2000-03-16T15:52:24-06:00 Subject: [ruby-talk:01925] Class Variables How do I do the equivalent of something like this.... Class Foo setting1 = 2; setting2 = 5; def .... def ... end fooey = Foo.new; print fooey.setting1 2 print fooey.setting2 5 print fooey.setting2 + fooey.setting1 7 etc..... I thought I heard someone say something about "Class Variables" somewhere. I figured out by osmosis about the "def initialization" method (didn't see THAT ONE in the UGuide or the Man.....) but it seems as if @var isn't anywhere to be found outside the Class - more of a private class variable than a public instance variable. I might add that the chapter on "instance variables" in the User Guide is confusing (in English) - at least, to me anyway.