Method: Zold::Id#<=>

Defined in:
lib/zold/id.rb

#<=>(other) ⇒ Object



76
77
78
79
# File 'lib/zold/id.rb', line 76

def <=>(other)
  raise 'Can only compare with Id' unless other.is_a?(Id)
  to_s <=> other.to_s
end