Class: Evilution::CLI::Printers::Subjects Private
- Inherits:
-
Object
- Object
- Evilution::CLI::Printers::Subjects
- 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
-
#initialize(entries, total_mutations:) ⇒ Subjects
constructor
private
A new instance of Subjects.
- #render(io) ⇒ Object private
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 |