negative? -> bool[permalink][rdoc][edit]-
self が 0 未満の場合に true を返します。そうでない場合に false を返します。
例p -1.negative? # => true p 0.negative? # => false p 1.negative? # => false[SEE_ALSO] Numeric#positive?
negative? -> bool[permalink][rdoc][edit]self が 0 未満の場合に true を返します。そうでない場合に false を返します。
例p -1.negative? # => true
p 0.negative? # => false
p 1.negative? # => false
[SEE_ALSO] Numeric#positive?