Class: Cogger::Formatters::Parsers::Element
- Defined in:
- lib/cogger/formatters/parsers/element.rb
Overview
Parses template elements for specific and dynamic colors.
Constant Summary collapse
- PATTERN =
%r( < # Tag open start. (?<directive>\w+) # Tag open name. > # Tag open end. (?<content>.+?) # Content. </ # Tag close start. \w+ # Tag close. > # Tag close end. )mx
Constants inherited from Abstract
Abstract::NEW_LINE, Abstract::SANITIZERS
Instance Method Summary collapse
- #call(template, level) ⇒ Object
-
#initialize(pattern: PATTERN) ⇒ Element
constructor
A new instance of Element.
Constructor Details
Instance Method Details
#call(template, level) ⇒ Object
23 24 25 26 |
# File 'lib/cogger/formatters/parsers/element.rb', line 23 def call template, level mutate template, level template end |