ruby class_variable method Posted on 2011-09-23 In Ruby class One @@var1 = 1 end class Two < One @@var2 = 2 end One.class_variables #=> [:@@var1] Two.class_variables #=> [:@@var2]