Class: Cogger::Formatters::Parsers::Combined
- Inherits:
-
Object
- Object
- Cogger::Formatters::Parsers::Combined
- Defined in:
- lib/cogger/formatters/parsers/combined.rb
Overview
Parses template literals, emojis, and keys for specific and dynamic colors.
Constant Summary collapse
Instance Method Summary collapse
- #call(template, level) ⇒ Object
-
#initialize(steps: STEPS) ⇒ Combined
constructor
A new instance of Combined.
Constructor Details
Instance Method Details
#call(template, level) ⇒ Object
14 15 16 |
# File 'lib/cogger/formatters/parsers/combined.rb', line 14 def call template, level steps.reduce(template.dup) { |modification, step| step.call modification, level } end |