Module: Antlers::Lexeme

Included in:
ForLexeme, FormLexeme, IfLexeme, PropLexeme, SlotLexeme, YieldLexeme
Defined in:
lib/interfaces/lexeme.rb

Constant Summary collapse

KEYWORDS =
[]

Instance Method Summary collapse

Instance Method Details

#lexeme(name:, props:, keywords:) ⇒ Object

Raises:

  • (NotImplementedError)


9
10
11
# File 'lib/interfaces/lexeme.rb', line 9

def lexeme(name:, props:, keywords:)
  raise NotImplementedError
end

#match?(name: nil, keywords: {}) ⇒ Boolean

Returns:

  • (Boolean)


7
# File 'lib/interfaces/lexeme.rb', line 7

def match?(name: nil, keywords: {}) = false