diff options
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/core_ext/integer/inquiry.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activesupport/lib/active_support/core_ext/integer/inquiry.rb b/activesupport/lib/active_support/core_ext/integer/inquiry.rb index dc710b74d0..17a04d4d63 100644 --- a/activesupport/lib/active_support/core_ext/integer/inquiry.rb +++ b/activesupport/lib/active_support/core_ext/integer/inquiry.rb @@ -8,11 +8,11 @@ class Integer self > 0 end - # Returns true if the number is positive. + # Returns true if the number is negative. # - # -1.positive? # => true - # 0.positive? # => false - # 1.positive? # => false + # -1.negative? # => true + # 0.negative? # => false + # 1.negative? # => false def negative? self < 0 end |