class ExampleClass @variable = "foo" @@variable = "bar" def self.test puts @variable end end ExampleClassInstance.test