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