Class: TXTFormatter
- Inherits:
-
ArrayFormatter
- Object
- BaseFormatter
- ArrayFormatter
- TXTFormatter
- Defined in:
- lib/teuton/report/formatter/txt_formatter.rb
Instance Method Summary collapse
-
#initialize(report, color = false) ⇒ TXTFormatter
constructor
A new instance of TXTFormatter.
- #process ⇒ Object
Methods inherited from ArrayFormatter
#build_data, #build_final_data, #build_history_data, #build_hof_data, #build_initial_data
Methods inherited from BaseFormatter
Constructor Details
#initialize(report, color = false) ⇒ TXTFormatter
Returns a new instance of TXTFormatter.
7 8 9 10 11 |
# File 'lib/teuton/report/formatter/txt_formatter.rb', line 7 def initialize(report, color=false) @color = color super(report) @data = {} end |
Instance Method Details
#process ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/teuton/report/formatter/txt_formatter.rb', line 13 def process rainbow_state = Rainbow.enabled Rainbow.enabled = @color build_data process_config process_logs process_groups process_results process_hof deinit Rainbow.enabled = rainbow_state end |