Class: Traject::YamlWriter
- Inherits:
-
LineWriter
- Object
- LineWriter
- Traject::YamlWriter
- Defined in:
- lib/traject/yaml_writer.rb
Instance Attribute Summary
Attributes inherited from LineWriter
#output_file, #settings, #write_mutex
Instance Method Summary collapse
Methods inherited from LineWriter
#_write, #close, #initialize, #open_output_file, #put, #should_close_stream?
Constructor Details
This class inherits a constructor from Traject::LineWriter
Instance Method Details
#serialize(context) ⇒ Object
5 6 7 |
# File 'lib/traject/yaml_writer.rb', line 5 def serialize(context) context.output_hash.to_yaml(:indentation=>3, :line_width => 78) + "\n\n" end |