Why does @test go out of scope in Aclass? When a.print_test is called, I get an undefined for @test.
class Aclass
def print_test
puts "@test from Aclass: " + @test
end
end
a = Aclass.new
#a.print_test
#but still in scope here
puts "After print_test call: " + @test
On a side note, any one know how to get the run code button? I don't see it in the toolbar.