Not directly an issue in this instance, but class variables are [generally best avoided in Ruby](http://www.railstips.org/blog/archives/2006/11/18/class-and-instance-variables-in-ruby/). These could be instance methods that memoize instance variables or plain simple constants defined at the top of the file.