class Airbrussh::DelegatingFormatter

This class quacks like an SSHKit::Formatter, but when any formatting methods are called, it simply forwards them to one more more concrete formatters. This allows us to split out the responsibilities of ConsoleFormatter and LogFileFormatter into two separate classes, with DelegatingFormatter forwarding the logging messages to both at once.

Constants

DUP_AND_FORWARD_METHODS
FORWARD_METHODS

Attributes

formatters[R]

Public Class Methods

new(formatters) click to toggle source
# File lib/airbrussh/delegating_formatter.rb, line 19
def initialize(formatters)
  @formatters = formatters
end