Class: Ronin::Core::OutputFormats::CSV
- Inherits:
-
OutputFile
- Object
- OutputFormat
- OutputFile
- Ronin::Core::OutputFormats::CSV
- Defined in:
- lib/ronin/core/output_formats/csv.rb
Overview
Represents a CSV (.csv
) output format.
Instance Attribute Summary
Attributes inherited from OutputFile
Instance Method Summary collapse
-
#<<(value) ⇒ Object
Appends a value to the CSV stream.
Methods inherited from OutputFile
Constructor Details
This class inherits a constructor from Ronin::Core::OutputFormats::OutputFile
Instance Method Details
#<<(value) ⇒ Object
Appends a value to the CSV stream.
44 45 46 47 48 49 50 51 52 53 |
# File 'lib/ronin/core/output_formats/csv.rb', line 44 def <<(value) unless value.respond_to?(:to_csv) raise(NotImplementedError,"output value must define a #to_csv method: #{value.inspect}") end @io.write(value.to_csv) @io.flush return self end |