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