Module: ActiveEnumerable::Comparable
Instance Method Summary collapse
Instance Method Details
#<=>(anOther) ⇒ Object
5 6 7 8 9 |
# File 'lib/active_enumerable/comparable.rb', line 5 def <=>(anOther) if anOther.is_a?(Array) || self.class == anOther.class to_a <=> anOther.to_a end end |