Q. Which of the following statements best describes the purpose of the attr_accessor method in Ruby classes?
β
Correct Answer: (D)
It defines both reader and writer methods for class attributes