Class: Evilution::CLI::Printers::Subjects Private

Inherits:
Object
  • Object
show all
Defined in:
lib/evilution/cli/printers/subjects.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(entries, total_mutations:) ⇒ Subjects

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 Subjects.



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

def initialize(entries, total_mutations:)
  @entries = entries
  @total_mutations = total_mutations
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.



11
12
13
14
15
# File 'lib/evilution/cli/printers/subjects.rb', line 11

def render(io)
  @entries.each { |entry| io.puts(format_entry(entry)) }
  io.puts("")
  io.puts(summary_line)
end