Class: Locomotive::Steam::Adapters::Memory::Order::Desc

Inherits:
Direction
  • Object
show all
Defined in:
lib/locomotive/steam/adapters/memory/order.rb

Instance Attribute Summary

Attributes inherited from Direction

#obj

Instance Method Summary collapse

Methods inherited from Direction

#initialize

Constructor Details

This class inherits a constructor from Locomotive::Steam::Adapters::Memory::Order::Direction

Instance Method Details

#<=>(other) ⇒ Object



58
# File 'lib/locomotive/steam/adapters/memory/order.rb', line 58

def <=>(other); @obj && other.obj ? other.obj <=> @obj : @obj ? -1 : 1; end