module ULID::Compare
Public Instance Methods
<(other)
click to toggle source
# File lib/ulid/compare.rb, line 14 def <(other) case other when self.class self.ulid < other.ulid when Time self.time < other when String self.ulid < other end end
<=>(other)
click to toggle source
# File lib/ulid/compare.rb, line 25 def <=>(other) case other when self.class self.ulid <=> other.ulid when Time self.time <=> other when String self.ulid <=> other end end
>(other)
click to toggle source
# File lib/ulid/compare.rb, line 3 def >(other) case other when self.class self.ulid > other.ulid when Time self.time > other when String self.ulid > other end end