Class: LintTrappings::FormatterForwarder

Inherits:
Object
  • Object
show all
Defined in:
lib/lint_trappings/formatter_forwarder.rb

Overview

Contains a collection of formatters and their output destinations, exposing them a single formatter.

This quacks like a Formatter so that it can be used in place of a single formatter, but fans out the calls to all formatters in the collection.

Instance Method Summary collapse

Constructor Details

#initialize(formatters) ⇒ FormatterForwarder

Returns a new instance of FormatterForwarder.



8
9
10
# File 'lib/lint_trappings/formatter_forwarder.rb', line 8

def initialize(formatters)
  @formatters = formatters
end