Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/quandl/operation/core_ext/string.rb

Instance Method Summary collapse

Instance Method Details

#numeric?Boolean

Returns:

  • (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