module Roda::RodaPlugins::PlaceholderStringMatchers::RequestMethods

  1. lib/roda/plugins/placeholder_string_matchers.rb

Methods

Public Instance

  1. _match_string

Public Instance methods

_match_string (str)
[show source]
   # File lib/roda/plugins/placeholder_string_matchers.rb
30 def _match_string(str)
31   if str.index(":")
32     consume(self.class.cached_matcher(str){Regexp.escape(str).gsub(/:(\w+)/){|m| _match_symbol_regexp($1)}})
33   else
34     super
35   end
36 end