Module: Rain::TOCLexeme
- Extended by:
- TOCLexeme
- Includes:
- Antlers::Lexeme
- Included in:
- TOCLexeme
- Defined in:
- lib/pages/raindown/lexemes/toc_lexeme.rb
Constant Summary collapse
- KEYWORDS =
[':toc'].freeze
Instance Method Summary collapse
Instance Method Details
#lexeme ⇒ Object
16 17 18 |
# File 'lib/pages/raindown/lexemes/toc_lexeme.rb', line 16 def lexeme(**) { toc: :default } end |
#match?(keywords:) ⇒ Boolean
12 13 14 |
# File 'lib/pages/raindown/lexemes/toc_lexeme.rb', line 12 def match?(keywords:, **) keywords.keys.include?(':toc') end |