Sha256: 8c5fc1eb55b446f28d8521a7f263af638d0cf5c3aa4ee3f52528de368cecbb33
Contents?: true
Size: 99 Bytes
Versions: 2
Compression:
Stored size: 99 Bytes
Contents
module JsonParser::TypeCast def to_money_float(value) value.gsub(/\$ */, '').to_f end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
json_parser-1.3.1 | spec/support/models/json_parser/type_cast.rb |
json_parser-1.3.0 | spec/support/models/json_parser/type_cast.rb |