method

negative?

Importance_1
v5.1.7 - Show latest stable - 0 notes - Class: Numeric
negative?() public

Returns true if the number is negative.

-1.negative? # => true
0.negative?  # => false
1.negative?  # => false
Show source
Register or log in to add new notes.