Sha256: 4cef8690a9cfe44767d7f67353fe71b6891f559bb3291fa7e9e8ba304ab0dbe4

Contents?: true

Size: 343 Bytes

Versions: 1

Compression:

Stored size: 343 Bytes

Contents

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.1.6 lib/docparser/output/csv_output.rb