Class: Mutant::Reporter::CLI::Printer

Inherits:
Object
  • Object
show all
Includes:
AbstractType, Adamantium::Flat, Delegator
Defined in:
lib/mutant/reporter/cli/printer.rb

Overview

CLI runner status printer base class

Direct Known Subclasses

Progress, Report

Constant Summary collapse

NL =
"\n".freeze

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Delegator

included

Class Method Details

.run(output, object) ⇒ 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 on object to output

Parameters:

  • output (IO)
  • object (Object)

Returns:

  • (self)


20
21
22
23
24
# File 'lib/mutant/reporter/cli/printer.rb', line 20

def self.run(output, object)
  handler = lookup(object.class)
  handler.new(output, object).run
  self
end

Instance Method Details

#runself

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

Returns:

  • (self)


32
# File 'lib/mutant/reporter/cli/printer.rb', line 32

abstract_method :run