Class: Numeric
Overview
HotCocoa extensions for the Numeric class
Instance Method Summary collapse
-
#negative? ⇒ Boolean
deprecated
Deprecated.
This only exists for Range#to_NSRange, which has also been deprecated.
Instance Method Details
#negative? ⇒ Boolean
Deprecated.
This only exists for Range#to_NSRange, which has also been deprecated.
Whether or not a number is negative
9 10 11 |
# File 'lib/hotcocoa/core_extensions/numeric.rb', line 9 def negative? self < 0 end |