Sha256: 77f595953a757b6be1a632e5f7c2740d789508e5e30b812d679545f067ff1014
Contents?: true
Size: 335 Bytes
Versions: 2
Compression:
Stored size: 335 Bytes
Contents
# frozen_string_literal: true require "bigdecimal" require "bigdecimal/util" require "csv" module FeCoreExt::CoreExt end module FeCoreExt::CoreExt::CSV end class CSV #include FeCoreExt::CoreExt::CSV Converters[:decimal] = lambda do |field| begin Float(field) field.to_d rescue field end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fe_core_ext-0.30.0 | lib/fe_core_ext/core_ext/csv.rb |
fe_core_ext-0.29.1 | lib/fe_core_ext/core_ext/csv.rb |