Class: Mustermann::Rails

Inherits:
AST::Pattern show all
Defined in:
lib/mustermann/rails.rb

Overview

Rails style pattern implementation.

Examples:

Mustermann.new('/:foo', type: :rails) === '/bar' # => true

See Also:

Constant Summary

Constants inherited from Pattern

Pattern::PATTERN_METHODS

Constants included from Mustermann

DEFAULT_TYPE, VERSION

Instance Attribute Summary

Attributes inherited from RegexpBased

#regexp

Method Summary

Methods inherited from AST::Pattern

#expand, #to_templates

Methods inherited from RegexpBased

#initialize, #peek_match, #peek_size

Methods inherited from Pattern

#&, #===, #=~, #^, #expand, #initialize, #match, #named_captures, #names, new, #params, #peek, #peek_match, #peek_params, #peek_size, supported?, supported_options, #to_proc, #to_s, #to_templates, #|

Methods included from Mustermann

[], new, register

Constructor Details

This class inherits a constructor from Mustermann::RegexpBased