Module: Daru::IO::CSV

Defined in:
lib/daru/io/csv/converters.rb

Constant Summary collapse

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