Sha256: 45c10d1e1f61739dccd1b35f5cd7ee2333f93adf572c019e071f884c99c8991e
Contents?: true
Size: 326 Bytes
Versions: 15
Compression:
Stored size: 326 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
15 entries across 15 versions & 1 rubygems