Sha256: 728fef3f13da9453550a3d779c51f72e892cd9f309d9d9edd4465d8b714ddfa8

Contents?: true

Size: 115 Bytes

Versions: 29

Compression:

Stored size: 115 Bytes

Contents

class String
  
  def numeric?
    return true if self =~ /^\d+$/
    true if Float(self) rescue false
  end
  
end

Version data entries

29 entries across 29 versions & 2 rubygems

Version Path
quandl_operation-0.4.1 lib/quandl/operation/core_ext/string.rb
quandl_operation-0.4.0 lib/quandl/operation/core_ext/string.rb
quandl_operation-0.3.2 lib/quandl/operation/core_ext/string.rb
quandl_operation-0.3.1 lib/quandl/operation/core_ext/string.rb
quandl_operation-0.3.0 lib/quandl/operation/core_ext/string.rb
quandl_operation-0.2.1 lib/quandl/operation/core_ext/string.rb
quandl_operation-0.2.0 lib/quandl/operation/core_ext/string.rb
quandl_operation-0.1.23 lib/quandl/operation/core_ext/string.rb
quandl_operation-0.1.22 lib/quandl/operation/core_ext/string.rb
quandl_operation-0.1.21 lib/quandl/operation/core_ext/string.rb
quandl_operation-0.1.20 lib/quandl/operation/core_ext/string.rb
quandl_operation-0.1.19 lib/quandl/operation/core_ext/string.rb
quandl_operation-0.1.18 lib/quandl/operation/core_ext/string.rb
quandl_operation-0.1.17 lib/quandl/operation/core_ext/string.rb
quandl_operation-0.1.16 lib/quandl/operation/core_ext/string.rb
quandl_operation-0.1.15 lib/quandl/operation/core_ext/string.rb
quandl_operation-0.1.14 lib/quandl/operation/core_ext/string.rb
quandl_operation-0.1.13 lib/quandl/operation/core_ext/string.rb
quandl_cassinatra-0.2.2 lib/quandl/cassinatra/core_ext/string.rb
quandl_cassinatra-0.2.1 lib/quandl/cassinatra/core_ext/string.rb