Class: WhyClasses::Formatters::BaseFormatter
- Inherits:
-
Object
- Object
- WhyClasses::Formatters::BaseFormatter
- 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.
Direct Known Subclasses
ClangFormatter, DiffFormatter, JsonFormatter, ProgressFormatter
Instance Method Summary collapse
- #call(reports) ⇒ Object
-
#initialize(io = $stdout) ⇒ BaseFormatter
constructor
A new instance of BaseFormatter.
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
13 14 15 |
# File 'lib/why_classes/formatters/base_formatter.rb', line 13 def call(reports) raise NotImplementedError end |