Sha256: 4cd322a50668db6e0ed3775f2283ea620cbc6ba196368c7ecb009608f41e5960
Contents?: true
Size: 191 Bytes
Versions: 99
Compression:
Stored size: 191 Bytes
Contents
module Converter # convert the value to an integer if we have numbers only # otherwise we return the string def convert_to_i(val) val = val.to_i if val =~ /^\d+$/ val end end
Version data entries
99 entries across 99 versions & 2 rubygems