Class: Numeric
Overview
HotCocoa extensions for the Numeric class
Instance Method Summary collapse
-
#negative? ⇒ Boolean
Whether or not a number is negative.
Instance Method Details
#negative? ⇒ Boolean
Whether or not a number is negative
6 7 8 |
# File 'lib/hotcocoa/core_extensions/numeric.rb', line 6 def negative? self < 0 end |