Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/jeweler/utils/core_ext/Object.rb
Instance Method Summary collapse
Instance Method Details
#number? ⇒ Boolean
2 3 4 5 6 7 8 9 10 |
# File 'lib/jeweler/utils/core_ext/Object.rb', line 2 def number? begin result = Float(self) return true if result rescue ArgumentError false end false end |