class BerkeleyLibrary::TIND::Export::CSVExporter

Exporter for CSV (comma-separated value) text

Public Instance Methods

export(out = nil) click to toggle source

Exports {ExportBase#collection} as CSV @overload export

Exports to a new string.
@return [String] the CSV string

@overload export(out)

Exports to the specified output stream.
@param out [IO] the output stream
@return[void]

@overload export(path)

Exports to the specified file.
@param path [String, Pathname] the path to the output file
@return[void]
# File lib/berkeley_library/tind/export/csv_exporter.rb, line 21
def export(out = nil)
  # noinspection RubyYardReturnMatch
  export_table.tap { logger.info('Writing CSV') }.to_csv(out)
end