O'Reilly logo
  • Gustavo Lopez thinks this is interesting:

# default implementation via attr_reader
 2    def cog
 3      @cog
 4    end

From

Cover of Practical Object-Oriented Design in Ruby: An Agile Primer

Note

Data should have its own way of encapsulating ... (object) ... that way it is easy to change what it means