Class: Mustermann::Template

Inherits:
AST::Pattern
  • Object
show all
Includes:
Concat::Native
Defined in:
lib/mustermann/template.rb

Overview

URI template pattern implementation.

Examples:

Mustermann.new('/{foo}') === '/bar' # => true

See Also:

Instance Method Summary collapse

Instance Method Details

#to_templatesObject

Identity patterns support generating templates (the logic is quite complex, though).

See Also:

  • Pattern#to_templates


57
58
59
# File 'lib/mustermann/template.rb', line 57

def to_templates
  [to_s]
end