Module: Bors::Math
- Included in:
- Example, Example::Feature
- Defined in:
- lib/bors/math.rb
Instance Method Summary collapse
Instance Method Details
#is_number?(value) ⇒ Boolean
8 9 10 |
# File 'lib/bors/math.rb', line 8 def is_number?(value) value.kind_of?(Float) || value.kind_of?(Integer) end |
#is_real_number?(value) ⇒ Boolean
4 5 6 |
# File 'lib/bors/math.rb', line 4 def is_real_number?(value) is_number?(value) && value >= 0 end |