Sha256: 86fa789631c248845505c27e2e768752629b1d5dac1548c500f63d13f2406fde

Contents?: true

Size: 373 Bytes

Versions: 1

Compression:

Stored size: 373 Bytes

Contents

# frozen_string_literal: true

require 'csv'
module DocParser
  # The CSVOutput class generates a CSV file containing all rows
  # @see Output
  class CSVOutput < Output
    # @!visibility private
    def open_file
      @csv = CSV.new(@file, col_sep: ';')
    end

    def header
      write_row @header
    end

    def write_row(row)
      @csv << row
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
docparser-0.3.0 lib/docparser/output/csv_output.rb