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