I am new to Ruby so could you please explain one thing to me. Here is my code file:
class You
def method
puts "are the best"
end
end
CONST = "const value"
var = "var value"
I require it in another file or irb. After that, I can access all of declared names except var. As far as I understand, Ruby distinguishes constants from variables by writing in uppercase. But why aren't the variables exported?