So suppose I have this (not working):
class User
description = \"I am User class variable\"
def print
puts description
end
end
Instance variables must be prefixed with an @ and are not accessible from outside. Class variables must be prefixed with an @@.
The first time you use this variable anywhere in code, it will be initialized. If you want to access the value from outside:
attr_reader :description
http://rubylearning.com/satishtalim/tutorial.html