Class: Mutant::Reporter::CLI::Printer
- Inherits:
-
Object
- Object
- Mutant::Reporter::CLI::Printer
- Includes:
- AbstractType, Adamantium::Flat
- Defined in:
- lib/mutant/reporter/cli/printer.rb,
lib/mutant/reporter/cli/printer/config.rb,
lib/mutant/reporter/cli/printer/killer.rb,
lib/mutant/reporter/cli/printer/subject.rb,
lib/mutant/reporter/cli/printer/mutation.rb
Overview
CLI runner status printer base class
Defined Under Namespace
Classes: Config, Killer, Mutation, Subject
Constant Summary collapse
- REGISTRY =
{}
Class Method Summary collapse
-
.build(*args) ⇒ Printer
private
Build printer.
-
.finalize ⇒ undefined
private
Finalize CLI reporter.
-
.handle(klass) ⇒ undefined
private
Registre handler for class.
-
.run(*args) ⇒ self
private
Run printer.
-
.visit(object, output) ⇒ undefined
private
Visit object.
Class Method Details
.build(*args) ⇒ Printer
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.
Build printer
70 71 72 |
# File 'lib/mutant/reporter/cli/printer.rb', line 70 def self.build(*args) new(*args) end |
.finalize ⇒ undefined
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.
Finalize CLI reporter
60 61 62 |
# File 'lib/mutant/reporter/cli/printer.rb', line 60 def self.finalize REGISTRY.freeze end |
.handle(klass) ⇒ undefined
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.
Registre handler for class
50 51 52 |
# File 'lib/mutant/reporter/cli/printer.rb', line 50 def self.handle(klass) REGISTRY[klass] = self end |
.run(*args) ⇒ self
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.
Run printer
80 81 82 83 |
# File 'lib/mutant/reporter/cli/printer.rb', line 80 def self.run(*args) build(*args).run self end |
.visit(object, output) ⇒ undefined
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.
Visit object
94 95 96 97 |
# File 'lib/mutant/reporter/cli/printer.rb', line 94 def self.visit(object, output) printer = lookup(object.class) printer.run(object, output) end |