Sha256: 2ee40290af8e1e9ffa77018c327cf9c5faa2a1abdedc6543f0ae19ca86db6038
Contents?: true
Size: 510 Bytes
Versions: 74
Compression:
Stored size: 510 Bytes
Contents
class UserAgent # A custom Comparable module that will always return false # if the <=> returns false module Comparable def <(other) (c = self <=> other) ? c == -1 : false end def <=(other) (c = self <=> other) ? c == -1 || c == 0 : false end def ==(other) (c = self <=> other) ? c == 0 : false end def >(other) (c = self <=> other) ? c == 1 : false end def >=(other) (c = self <=> other) ? c == 1 || c == 0 : false end end end
Version data entries
74 entries across 74 versions & 7 rubygems