Class: Evilution::CLI::Printers::TestsList Private

Inherits:
Object
  • Object
show all
Defined in:
lib/evilution/cli/printers/tests_list.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Constructor Details

#initialize(mode:, specs: nil, entries: nil) ⇒ TestsList

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of TestsList.



6
7
8
9
10
# File 'lib/evilution/cli/printers/tests_list.rb', line 6

def initialize(mode:, specs: nil, entries: nil)
  @mode = mode
  @specs = specs
  @entries = entries
end

Instance Method Details

#render(io) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



12
13
14
15
16
17
# File 'lib/evilution/cli/printers/tests_list.rb', line 12

def render(io)
  case @mode
  when :explicit then render_explicit(io)
  when :resolved then render_resolved(io)
  end
end