`@@` variables are actually class *hierarchy* variables, although unfortunately people still call them class variables.  This is a common Ruby gotcha, e.g. http://www.railstips.org/blog/archives/2006/11/18/class-and-instance-variables-in-ruby/