Class: XMLFormatter
- Inherits:
-
ArrayFormatter
- Object
- BaseFormatter
- ArrayFormatter
- XMLFormatter
- Defined in:
- lib/teuton/report/formatter/default/xml.rb
Instance Attribute Summary
Attributes inherited from BaseFormatter
Instance Method Summary collapse
-
#initialize(report) ⇒ XMLFormatter
constructor
A new instance of XMLFormatter.
- #process(options = {}) ⇒ Object
Methods inherited from ArrayFormatter
Methods inherited from BaseFormatter
Constructor Details
#initialize(report) ⇒ XMLFormatter
Returns a new instance of XMLFormatter.
4 5 6 7 8 |
# File 'lib/teuton/report/formatter/default/xml.rb', line 4 def initialize(report) super @ext = "xml" @data = {} end |
Instance Method Details
#process(options = {}) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/teuton/report/formatter/default/xml.rb', line 10 def process( = {}) build_data() w "<teuton>\n" w "\n" process_config process_logs process_groups process_results process_hof w "</teuton>\n" deinit end |