Module: Roda::RodaPlugins::PlaceholderStringMatchers::RequestMethods

Defined in:
lib/roda/plugins/placeholder_string_matchers.rb

Instance Method Summary collapse

Instance Method Details

#_match_string(str) ⇒ Object



30
31
32
33
34
35
36
# File 'lib/roda/plugins/placeholder_string_matchers.rb', line 30

def _match_string(str)
  if str.index(":")
    consume(self.class.cached_matcher(str){Regexp.escape(str).gsub(/:(\w+)/){|m| _match_symbol_regexp($1)}})
  else
    super
  end
end