Sha256: 11374f23461217ff6bc7d3c9e5d33bf358b353b96f3b1e033c4cb5db10deb88e
Contents?: true
Size: 223 Bytes
Versions: 1
Compression:
Stored size: 223 Bytes
Contents
class Numeric unless method_defined?(:multiple_of?) def multiple_of?(number) number != 0 ? modulo(number).zero? : zero? end end def negative? self < 0 end def positive? self > 0 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flash_extensions-1.0.0 | lib/flash_extensions/extensions/numeric_extension.rb |