--- Revision None +++ Revision 633539353234 @@ -0,0 +1,18 @@ +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