Module: Antlers::YieldLexeme

Extended by:
YieldLexeme
Includes:
Lexeme
Included in:
YieldLexeme
Defined in:
lib/lexemes/yield_lexeme.rb

Constant Summary

Constants included from Lexeme

Lexeme::KEYWORDS

Instance Method Summary collapse

Instance Method Details

#lexemeObject



14
15
16
# File 'lib/lexemes/yield_lexeme.rb', line 14

def lexeme(**)
  { slot: :default }
end

#match?(keywords:) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/lexemes/yield_lexeme.rb', line 10

def match?(keywords:, **)
  keywords.keys.include?(':slot')
end