Method: Osm::Model#<=>

Defined in:
lib/osm/model.rb

#<=>(another) ⇒ Object

Default compare based on id



47
48
49
# File 'lib/osm/model.rb', line 47

def <=>(another)
  return self.id <=> another.try(:id)
end