Sha256: ae6b0bf9e812b3cd52d536d5f717f37c0e56f609bda91ad6521e05652ec770e6

Contents?: true

Size: 350 Bytes

Versions: 4

Compression:

Stored size: 350 Bytes

Contents

module DaruLite
  module IO
    module CSV
      CONVERTERS = {
        boolean: lambda { |f, _|
          case f.downcase.strip
          when 'true'
            true
          when 'false'
            false
          else
            f
          end
        },
        string: lambda { |f, _|
          f
        }
      }.freeze
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
daru_lite-0.1.3 lib/daru_lite/io/csv/converters.rb
daru_lite-0.1.2 lib/daru_lite/io/csv/converters.rb
daru_lite-0.1.1 lib/daru_lite/io/csv/converters.rb
daru_lite-0.1 lib/daru_lite/io/csv/converters.rb