Class: Evilution::Reporter::CLI::Trailer Private
- Inherits:
-
Object
- Object
- Evilution::Reporter::CLI::Trailer
- Defined in:
- lib/evilution/reporter/cli/trailer.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.
Constant Summary collapse
- DEFAULT_LINES =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
[ Evilution::Reporter::CLI::LineFormatters::TruncationNotice.new, Evilution::Reporter::CLI::LineFormatters::ResultLine.new, Evilution::Reporter::CLI::LineFormatters::FeedbackFooter.new ].freeze
Instance Method Summary collapse
- #call(summary) ⇒ Object private
-
#initialize(lines: DEFAULT_LINES) ⇒ Trailer
constructor
private
A new instance of Trailer.
Constructor Details
#initialize(lines: DEFAULT_LINES) ⇒ Trailer
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 Trailer.
15 16 17 |
# File 'lib/evilution/reporter/cli/trailer.rb', line 15 def initialize(lines: DEFAULT_LINES) @lines = lines end |
Instance Method Details
#call(summary) ⇒ 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.
19 20 21 |
# File 'lib/evilution/reporter/cli/trailer.rb', line 19 def call(summary) @lines.filter_map { |line| line.format(summary) } end |