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