Sha256: 034dcda6bd27a74ba85f50383edb1e655f3d79f3b298e0a1cdc1d2d32d98d0e0
Contents?: true
Size: 140 Bytes
Versions: 2
Compression:
Stored size: 140 Bytes
Contents
class String def numeric? return true if self =~ /^\d+$/ begin true if Float(self) rescue false end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
quandl_operation-0.4.2 | lib/quandl/operation/core_ext/string.rb |
quandl_operation-0.4.2.rc1 | lib/quandl/operation/core_ext/string.rb |