From: eggman2001 Date: 2009-05-27T12:07:18+09:00 Subject: How to access variables from within class definition I've got something like: @var = 'brown' class Foo < ActiveRecord::Base set_table_name @var end However, as the code is right now, I'm not able to access @var from within the class definition. Can someone tell me how I can accomplish this?