Q. What is the purpose of the Module#attr_reader, Module#attr_writer, and Module#attr_accessor methods in Ruby?
β
Correct Answer: (A)
They define getter, setter, and both getter and setter methods for instance variables respectively