Class: Evilution::CLI::Printers::Compare Private
- Inherits:
-
Object
- Object
- Evilution::CLI::Printers::Compare
- Defined in:
- lib/evilution/cli/printers/compare.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
- SCHEMA =
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.
{ "shared" => %w[file line operator fp], "alive_only" => %w[file line operator fp other_status] }.freeze
- FILE_LINE_WIDTH =
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.
40- OPERATOR_WIDTH =
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.
22- FP_LENGTH =
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.
7- MUTANT_OPERATOR =
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.
"(mutant)"- ABSENT_STATUS =
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.
"absent"
Instance Method Summary collapse
-
#initialize(buckets, format: :json) ⇒ Compare
constructor
private
A new instance of Compare.
- #render(io) ⇒ Object private
Constructor Details
#initialize(buckets, format: :json) ⇒ Compare
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 Compare.
18 19 20 21 |
# File 'lib/evilution/cli/printers/compare.rb', line 18 def initialize(buckets, format: :json) @buckets = buckets @format = format || :json 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.
23 24 25 26 27 28 29 |
# File 'lib/evilution/cli/printers/compare.rb', line 23 def render(io) case @format when :json then render_json(io) when :text then render_text(io) else raise Evilution::Error, "unknown compare format: #{@format.inspect}" end end |