Sha256: b2dbe6a1901f7498d9f3b809f906414cea11b7eb7ee55f90f7efb0617f531aff

Contents?: true

Size: 342 Bytes

Versions: 6

Compression:

Stored size: 342 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

6 entries across 6 versions & 1 rubygems

Version Path
docparser-0.1.4 lib/docparser/output/csv_output.rb
docparser-0.1.3 lib/docparser/output/csv_output.rb
docparser-0.1.2 lib/docparser/output/csv_output.rb
docparser-0.1.1 lib/docparser/output/csv_output.rb
docparser-0.1.0 lib/docparser/output/csv_output.rb
docparser-0.0.1 lib/docparser/output/csv_output.rb