Sha256: 042d5011c2b92b4c4bcc91031dd0725f218ce832a37e020d359322c2fa0d63d7
Contents?: true
Size: 325 Bytes
Versions: 16
Compression:
Stored size: 325 Bytes
Contents
module Comparable def <(other) (self <=> other) == -1 end def <=(other) (self <=> other) <= 0 end def ==(other) (self <=> other) == 0 end def >(other) (self <=> other) == 1 end def >=(other) (self <=> other) >= 0 end def between?(min, max) self > min && self < max end end
Version data entries
16 entries across 16 versions & 1 rubygems