Class: Traject::YamlWriter

Inherits:
LineWriter show all
Defined in:
lib/traject/yaml_writer.rb

Instance Attribute Summary

Attributes inherited from LineWriter

#settings, #write_mutex

Instance Method Summary collapse

Methods inherited from LineWriter

#close, #initialize, #output_file, #put

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