Module: Doodle::Comparable
- Defined in:
- lib/doodle.rb
Overview
doodles are compared (sorted) on values
Instance Method Summary collapse
Instance Method Details
#<=>(o) ⇒ Object
70 71 72 |
# File 'lib/doodle.rb', line 70 def <=>(o) doodle.values <=> o.doodle.values end |