Class: CountVonCount::Formatters::Yaml

Inherits:
Base
  • Object
show all
Defined in:
lib/count_von_count/formatter.rb

Instance Attribute Summary

Attributes inherited from Base

#output_dir, #path

Instance Method Summary collapse

Methods inherited from Base

#initialize, #write_output

Constructor Details

This class inherits a constructor from CountVonCount::Formatters::Base

Instance Method Details

#extensionObject



76
77
78
# File 'lib/count_von_count/formatter.rb', line 76

def extension
  "yaml"
end

#serialize(countObj) ⇒ Object



79
80
81
# File 'lib/count_von_count/formatter.rb', line 79

def serialize(countObj)
  countObj.to_yaml
end