Class: Ronin::Core::OutputFormats::NDJSON
- Inherits:
-
OutputFile
- Object
- OutputFormat
- OutputFile
- Ronin::Core::OutputFormats::NDJSON
- Defined in:
- lib/ronin/core/output_formats/ndjson.rb
Overview
Represents a newline deliminated JSON (.ndjson
) output format.
Instance Attribute Summary
Attributes inherited from OutputFile
Instance Method Summary collapse
-
#<<(value) ⇒ self
Appends a value to the NDJSON stream.
Methods inherited from OutputFile
Constructor Details
This class inherits a constructor from Ronin::Core::OutputFormats::OutputFile
Instance Method Details
#<<(value) ⇒ self
Appends a value to the NDJSON stream.
46 47 48 49 50 |
# File 'lib/ronin/core/output_formats/ndjson.rb', line 46 def <<(value) @io.puts(value.to_json) @io.flush return self end |