Class: Airbrussh::Formatter
- Inherits:
-
DelegatingFormatter
- Object
- DelegatingFormatter
- Airbrussh::Formatter
- Defined in:
- lib/airbrussh/formatter.rb
Direct Known Subclasses
Constant Summary
Constants inherited from DelegatingFormatter
DelegatingFormatter::DUP_AND_FORWARD_METHODS, DelegatingFormatter::FORWARD_METHODS
Instance Attribute Summary
Attributes inherited from DelegatingFormatter
Instance Method Summary collapse
-
#initialize(io, options_or_config_object = {}) ⇒ Formatter
constructor
A new instance of Formatter.
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, ={}) config = ::Airbrussh.configuration() # Delegate to ConsoleFormatter and (optionally) LogFileFormatter, # based on the configuration. super(config.formatters(io)) end |