Class: Airbrussh::Formatter

Inherits:
DelegatingFormatter show all
Defined in:
lib/airbrussh/formatter.rb

Direct Known Subclasses

SSHKit::Formatter::Airbrussh

Constant Summary

Constants inherited from DelegatingFormatter

DelegatingFormatter::DUP_AND_FORWARD_METHODS, DelegatingFormatter::FORWARD_METHODS

Instance Attribute Summary

Attributes inherited from DelegatingFormatter

#formatters

Instance Method Summary collapse

Constructor Details

#initialize(io, options_or_config_object = {}) ⇒ Formatter

Returns a new instance of Formatter.



11
12
13
14
15
16
# File 'lib/airbrussh/formatter.rb', line 11

def initialize(io, options_or_config_object={})
  config = ::Airbrussh.configuration(options_or_config_object)
  # Delegate to ConsoleFormatter and (optionally) LogFileFormatter,
  # based on the configuration.
  super(config.formatters(io))
end