Class: Traject::YamlWriter

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

Instance Method Summary collapse

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