Question from the Ruby (legacy) test

How to add a getter and setter method to a class in Ruby

Easy

How do you define read and write accessors for an attribute foo ?

Author: Olivier MillaStatus: PublishedQuestion passed 19 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!