To count group of regexp
%r{\((?!\?:|\?!|\?<=|\?<!|\?=).+?\)}.freeze
#capture_length ⇒ Object
Returns captures parameter length. #expand(params) ⇒ Object
Expands the path by using parameters. #handler ⇒ Object
Returns the handler which is an instance of Mustermann or Regexp. #initialize(path, options = {}) ⇒ Matcher
constructor Constructs an instance of PathRouter::Matcher. #match(pattern) ⇒ Object
Matches a pattern with the route matcher. #mustermann? ⇒ Boolean
Returns true if handler is an instance of Mustermann. #names ⇒ Object
Returns names of the handler. #params_for(pattern, others) ⇒ Object
Builds a parameters, and returns them. #to_regexp ⇒ Object
Returns a regexp from handler. #to_s ⇒ Object
Converts the handler into string. Constructs an instance of PathRouter::Matcher.
Returns captures parameter length.
Expands the path by using parameters.
Returns the handler which is an instance of Mustermann or Regexp.
Matches a pattern with the route matcher.
Returns true if handler is an instance of Mustermann.
Returns names of the handler.
Builds a parameters, and returns them.
Returns a regexp from handler.
Converts the handler into string.
© 2010–2019 Padrino
Licensed under the MIT License.
https://www.rubydoc.info/github/padrino/padrino-framework/Padrino/PathRouter/Matcher