negative?()
Returns true if the number is negative.
-1.negative? # => true 0.negative? # => false 1.negative? # => false
# File activesupport/lib/active_support/core_ext/numeric/inquiry.rb, line 19 def negative? self < 0 end