Travis Pett

9%
Flag icon
Always wrap instance variables in accessor methods instead of directly referring to variables.
Travis Pett
Great Ruby advice. There is no cost to this and no reason not to do it. Private attr_accessors and message sends instead of ivar access makes classes much easier to change.
Practical Object-Oriented Design: An Agile Primer Using Ruby
Rate this book
Clear rating
Open Preview