Ruby's attr_accessor, attr_reader and attr_writer
A Ruby object has its methods public by default, but its data is private. So if you need to access the data, for either reading or writing, you need to make it public somehow. Read it here
A Ruby object has its methods public by default, but its data is private. So if you need to access the data, for either reading or writing, you need to make it public somehow. Read it here
Post a comment