From: Gregory Brown Date: 2007-04-30T12:21:11+09:00 Subject: Re: Class Level Variables On 4/29/07, Ari Brown wrote: > > On Apr 29, 2007, at 9:03 PM, Gregory Brown wrote: > > > > Please don't do this. That assignment would happen every time you > > create an instance of the object, which completely defeats the purpose > > of class level variables. (Whether you use class instance variables or > > class variables). > > So use @@foo for general ideas (like @@foo = {} and when used in some > file.open(path, 'r') do ..... command) and @foo for variables that > hold specific values? Don't use @@foo, ever. Unless you know *why* you want to. They add unnecessary confusion. Instead, use class instance variables.