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

11    # ... now everyone can send rim/tire to wheel
12 
13    Wheel = Struct.new(:rim, :tire)
14    def wheelify(data)
15      data.collect {|cell|

From

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

Note

Turns same obscure data array ... into MEANINGFUL pieces of information ... wheel.rim + wheel.tire_size