Class: Mustermann::Template
- Inherits:
-
AST::Pattern
- Object
- Pattern
- RegexpBased
- AST::Pattern
- Mustermann::Template
- Defined in:
- mustermann-contrib/lib/mustermann/template.rb
Overview
URI template pattern implementation.
Constant Summary
Constants included from Mustermann
CompileError, DEFAULT_TYPE, Error, ExpandError, ParseError, TrieError
Instance Attribute Summary
Attributes inherited from RegexpBased
Attributes inherited from Pattern
Instance Method Summary collapse
-
#to_templates ⇒ Array<String>
Identity patterns support generating templates (the logic is quite complex, though).
Methods inherited from AST::Pattern
ast_cache, #expand, #identity_params?
Methods inherited from RegexpBased
#initialize, #match, #params, #peek_match, #peek_size
Methods inherited from Pattern
#+, #==, #===, #=~, #eql?, #expand, #hash, #identity_params?, #initialize, #match, #names, new, #params, #peek, #peek_match, #peek_params, #peek_size, supported?, supported_options, #to_proc, #to_s, #|
Methods included from Mustermann
Constructor Details
This class inherits a constructor from Mustermann::RegexpBased
Instance Method Details
#to_templates ⇒ Array<String>
Identity patterns support generating templates (the logic is quite complex, though).
57 58 59 |
# File 'mustermann-contrib/lib/mustermann/template.rb', line 57 def to_templates [to_s] end |