Module: Polyfill::V2_3::Numeric

Defined in:
lib/polyfill/v2_3/numeric.rb

Instance Method Summary collapse

Instance Method Details

#negative?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/polyfill/v2_3/numeric.rb', line 4

def negative?
  self < 0
end

#positive?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/polyfill/v2_3/numeric.rb', line 8

def positive?
  self > 0
end