Class: DocParser::CSVOutput

Inherits:
Output
  • Object
show all
Defined in:
lib/docparser/output/csv_output.rb

Overview

The CSVOutput class generates a CSV file containing all rows

See Also:

Instance Attribute Summary

Attributes inherited from Output

#filename, #rowcount

Instance Method Summary collapse

Methods inherited from Output

#add_row, #close, #footer, #header=, #initialize

Constructor Details

This class inherits a constructor from DocParser::Output

Instance Method Details

#headerObject


11
12
13
# File 'lib/docparser/output/csv_output.rb', line 11

def header
  write_row @header
end

#write_row(row) ⇒ Object


15
16
17
# File 'lib/docparser/output/csv_output.rb', line 15

def write_row(row)
  @csv << row
end