class Concurrent::Maybe

def <=>(other)

Returns:
  • (Integer) - 0 if self and other are both `Nothing`;
def <=>(other)
  if nothing?
    other.nothing? ? 0 : -1
  else
    other.nothing? ? 1 : just <=> other.just
  end
end