Class: YAMLFormatter
- Inherits:
-
ArrayFormatter
- Object
- BaseFormatter
- ArrayFormatter
- YAMLFormatter
- Defined in:
- lib/teuton/report/formatter/default/yaml.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from BaseFormatter
Instance Method Summary collapse
-
#initialize(report) ⇒ YAMLFormatter
constructor
A new instance of YAMLFormatter.
- #process(options = {}) ⇒ Object
Methods inherited from ArrayFormatter
Methods inherited from BaseFormatter
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 @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( = {}) build_data() w @data.to_yaml # Write data into ouput file deinit end |