Class: Cogger::Formatters::Parsers::Emoji
- Defined in:
- lib/cogger/formatters/parsers/emoji.rb
Overview
Parses template emojis for specific and dynamic colors.
Constant Summary collapse
- PATTERN =
/ %< # Start. (?<key>emoji) # Key. : # Delimiter. (?<directive>\w+) # Directive. >s # End. /x
Constants inherited from Abstract
Abstract::NEW_LINE, Abstract::SANITIZERS
Instance Method Summary collapse
- #call(template, level) ⇒ Object
-
#initialize(pattern: PATTERN) ⇒ Emoji
constructor
A new instance of Emoji.
Constructor Details
Instance Method Details
#call(template, level) ⇒ Object
21 22 23 24 |
# File 'lib/cogger/formatters/parsers/emoji.rb', line 21 def call template, level mutate template, level template end |