Sha256: cfc536e77f46eb4d4572304ab77a6dc0fbc16820e14f614d242962a3a2c325a3

Contents?: true

Size: 301 Bytes

Versions: 1

Compression:

Stored size: 301 Bytes

Contents

require "csv"

module Koine
  module Csv
    class CsvParser
      def initialize(column_separator = ";")
        @options = { col_sep: column_separator }
      end

      def parse(contents, &block)
        CSV.parse(contents, options, &block)
      end

      attr_reader :options
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
koine-csv-0.1.0 lib/koine/csv/csv_parser.rb