Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/quandl/operation/core_ext/string.rb
Instance Method Summary collapse
Instance Method Details
#numeric? ⇒ Boolean
2 3 4 5 6 7 8 9 |
# File 'lib/quandl/operation/core_ext/string.rb', line 2 def numeric? return true if self =~ /^\d+$/ begin true if Float(self) rescue false end end |