The knowledge that rims are at  should not be duplicated; it should be known in just one place.
- Chapter 2. Designing Classes with a Single Responsibility
- from Practical Object-Oriented Design in Ruby: An Agile Primer
- Publisher: Addison-Wesley Professional
- Released: September 2012
['rim','tire size','whatever'] ... your program (in many places should not have) ... array to find the tire_size .... This is called LEAKY and means that it's BAD encapsulation of data ... and breaks the DRY principle... That is, knowing that array is tire MUST be known in more than one place
Share this highlighthttp://www.safaribooksonline.com/a/practical-object-oriented-design/70786/