Class: WhyClasses::Formatters::BaseFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/why_classes/formatters/base_formatter.rb

Overview

Formatters receive the array of FileReport objects produced by the Runner and write output to an IO.

Instance Method Summary collapse

Constructor Details

#initialize(io = $stdout) ⇒ BaseFormatter

Returns a new instance of BaseFormatter.



8
9
10
# File 'lib/why_classes/formatters/base_formatter.rb', line 8

def initialize(io = $stdout)
  @io = io
end

Instance Method Details

#call(reports) ⇒ Object

Parameters:

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/why_classes/formatters/base_formatter.rb', line 13

def call(reports)
  raise NotImplementedError
end