Sha256: 0e40e4cad5fd859454eddf5510c2211aef1a2b268793378763f20957e02a9c40
Contents?: true
Size: 210 Bytes
Versions: 5
Compression:
Stored size: 210 Bytes
Contents
module Eucalypt module Helpers module Numeric def self.string?(string) return true if /\A\d+\Z/.match? string.to_s true if Float(string.to_s) rescue false end end end end
Version data entries
5 entries across 5 versions & 1 rubygems