module Roda::RodaPlugins::SymbolMatchers::RequestMethods
def _match_symbol(s)
if the symbol is registered. Otherwise, call super for the default
Use regular expressions to the symbol-specific regular expression
def _match_symbol(s) meth = :"match_symbol_#{s}" if respond_to?(meth) re = send(meth) consume(self.class.cached_matcher(re){re}) else super end end
def _match_symbol_regexp(s)
Return the symbol-specific regular expression if one is registered.
def _match_symbol_regexp(s) meth = :"match_symbol_#{s}" if respond_to?(meth) send(meth) else super end end