Sha256: ca603ff7c4f9e66976c00cb625ca31e79fa7ac6f3c2fb238885e168d2df41841
Contents?: true
Size: 360 Bytes
Versions: 27
Compression:
Stored size: 360 Bytes
Contents
unless Numeric.method_defined? :neg? class Numeric # Checks whether a number is negative. # # @return [Boolean] true is the number is negative, false otherwise # # @example # 5.neg? #=> false # # @example # -0.5.neg? #=> true # # @example # 0.neg? #=> false def neg? self < 0 end end end
Version data entries
27 entries across 24 versions & 6 rubygems