Class: YAMLFormatter

Inherits:
ArrayFormatter show all
Defined in:
lib/teuton/report/formatter/default/yaml.rb

Direct Known Subclasses

HTMLFormatter

Instance Attribute Summary

Attributes inherited from BaseFormatter

#ext

Instance Method Summary collapse

Methods inherited from ArrayFormatter

#build_data

Methods inherited from BaseFormatter

#deinit, #init, #trim, #w

Constructor Details

#initialize(report) ⇒ YAMLFormatter

Returns a new instance of YAMLFormatter.



5
6
7
8
# File 'lib/teuton/report/formatter/default/yaml.rb', line 5

def initialize(report)
  super(report)
  @ext = "yaml"
end

Instance Method Details

#process(options = {}) ⇒ Object



10
11
12
13
14
# File 'lib/teuton/report/formatter/default/yaml.rb', line 10

def process(options = {})
  build_data(options)
  w @data.to_yaml # Write data into ouput file
  deinit
end