Class: Mustermann::AST::Pattern Abstract
- Inherits:
-
RegexpBased
- Object
- Pattern
- RegexpBased
- Mustermann::AST::Pattern
- Extended by:
- Forwardable, SingleForwardable
- Defined in:
- lib/mustermann/ast/pattern.rb
Overview
This class is abstract.
Superclass for pattern styles that parse an AST from the string pattern.
Instance Attribute Summary
Attributes inherited from RegexpBased
Instance Method Summary collapse
-
#expand(**values) ⇒ String
All AST-based pattern implementations support expanding.
Methods inherited from RegexpBased
Methods inherited from Pattern
#===, #=~, #initialize, #match, #named_captures, #names, new, #params, supported?, supported_options, #to_s
Constructor Details
This class inherits a constructor from Mustermann::RegexpBased
Instance Method Details
#expand(**values) ⇒ String
All AST-based pattern implementations support expanding.
77 78 79 80 |
# File 'lib/mustermann/ast/pattern.rb', line 77 def (**values) @expander ||= Mustermann::Expander.new(self) @expander.(**values) end |