I Just started learning ruby and I don\'t see the difference between an @instace_variable and an attribute declared using attr_accessor.
@instace_variable
attr_accessor
Wh
Because attr_accessor defines methods, you can call them from outside the class. A @variable is only accessible from inside the class.
@variable