Sha256: 031236966282b6d08015c5afcc5569969578e6f9d14c7f2df61616c581249f64
Contents?: true
Size: 595 Bytes
Versions: 11
Compression:
Stored size: 595 Bytes
Contents
# frozen_string_literal: true Range.class_eval do # Greater than check. # # @param other [Numeric] # # @return [Boolean] # def >(other) self.end > other end # Greater than or equal to check. # # @param other [Numeric] # # @return [Boolean] # def >=(other) self.end >= other end # Less than to check. # # @param other [Numeric] # # @return [Boolean] # def <(other) self.begin < other end # Less than or equal to check. # # @param other [Numeric] # # @return [Boolean] # def <=(other) self.begin <= other end end
Version data entries
11 entries across 11 versions & 1 rubygems