Class: Locomotive::Steam::Adapters::Memory::Order::Asc

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



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

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