module UserAgent::Comparable

def <(other)

def <(other)
  (c = self <=> other) ? c == -1 : false
end

def <=(other)

def <=(other)
  (c = self <=> other) ? c == -1 || c == 0 : false
end

def ==(other)

def ==(other)
  (c = self <=> other) ? c == 0 : false
end

def >(other)

def >(other)
  (c = self <=> other) ? c == 1 : false
end

def >=(other)

def >=(other)
  (c = self <=> other) ? c == 1 || c == 0 : false
end