Class: MinitestBender::Recorders::Icons
- Inherits:
-
Object
- Object
- MinitestBender::Recorders::Icons
- Defined in:
- lib/minitest-bender/recorders/icons.rb
Instance Method Summary collapse
-
#initialize(io) ⇒ Icons
constructor
A new instance of Icons.
- #print_context(_result_context) ⇒ Object
- #print_context_with_results(_result_context, _results) ⇒ Object
- #print_result(result) ⇒ Object
Constructor Details
#initialize(io) ⇒ Icons
Returns a new instance of Icons.
4 5 6 |
# File 'lib/minitest-bender/recorders/icons.rb', line 4 def initialize(io) @printer = Printers::Plain.new(io) end |
Instance Method Details
#print_context(_result_context) ⇒ Object
8 9 10 |
# File 'lib/minitest-bender/recorders/icons.rb', line 8 def print_context(_result_context) # do nothing end |
#print_context_with_results(_result_context, _results) ⇒ Object
17 18 19 |
# File 'lib/minitest-bender/recorders/icons.rb', line 17 def print_context_with_results(_result_context, _results) # do_nothing end |
#print_result(result) ⇒ Object
12 13 14 15 |
# File 'lib/minitest-bender/recorders/icons.rb', line 12 def print_result(result) printer.print(result.to_icon) printer.advance end |