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