Pure straightfoward question.
I code in Java and started learning Ruby not long ago. Got this question in my mind.
Pure straightfoward question.
I code in Java and started learning Ruby not long ago. Got this question in my mind.
class Foo
attr_accessor :bar, :baz
end
Based on what I know, I think it automatically sets getters and setters. Just that you access it with the same name.