Ruby 3.4 リファレンスマニュアル

instance method Numeric#negative?

negative? -> boolRuby 2.3.0 から[permalink][rdoc][edit]

self が 0 未満の場合に true を返します。そうでない場合に false を返します。

p -1.negative? # => true
p 0.negative?  # => false
p 1.negative?  # => false

[SEE_ALSO] Numeric#positive?