Class: Cogger::Formatters::Parsers::Dynamic
- Inherits:
-
Object
- Object
- Cogger::Formatters::Parsers::Dynamic
- Defined in:
- lib/cogger/formatters/parsers/dynamic.rb
Overview
Dynamically extracts the universal or individual template attributes for log entry parsing.
Constant Summary collapse
- DELEGATES =
Order matters.
[Universal.new, Individual.new].freeze
Instance Method Summary collapse
- #call(template) ⇒ Object
-
#initialize(delegates: DELEGATES) ⇒ Dynamic
constructor
A new instance of Dynamic.
Constructor Details
Instance Method Details
#call(template) ⇒ Object
15 |
# File 'lib/cogger/formatters/parsers/dynamic.rb', line 15 def call(template) = parse(template) || template |