Q5
What does the attr_reader method do in Ruby?
A.
Defines a reader method for instance variables
AnswerB.
Defines a writer method for instance variables
C.
Defines both reader and writer methods for instance variables
D.
None of the above
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board