3 ms·
They are, which is why Ruby's Module (class comes from module) has attr_accessor method. http://ruby-doc.org/core-1.9.3/Module.html#method-i-attr_accessor http
by ryanto 13y ago
They are, which is why Ruby's Module (class comes from module) has attr_accessor method.
http://ruby-doc.org/core-1.9.3/Module.html#method-i-attr_accessor http://ruby-doc.org/core-1.9.3/Module.html#method-i-attr_acc...
The above can be written as
attr_accessor :sanity