module Roda::RodaPlugins::SymbolMatchers::RequestMethods
Private Instance Methods
Source
# File lib/roda/plugins/symbol_matchers.rb, line 146 def _match_symbol(s) meth = :"match_symbol_#{s}" if respond_to?(meth, true) # Allow calling private match methods _, re, convert_meth = send(meth) if re consume(re, convert_meth) else # defined in class_matchers plugin _consume_segment(convert_meth) end else super end end
Use regular expressions to the symbol-specific regular expression if the symbol is registered. Otherwise, call super for the default behavior.
Calls superclass method
Source
# File lib/roda/plugins/symbol_matchers.rb, line 164 def _match_symbol_regexp(s) meth = :"match_symbol_#{s}" if respond_to?(meth, true) # Allow calling private match methods re, = send(meth) re else super end end
Return the symbol-specific regular expression if one is registered. Otherwise, call super for the default behavior.
Calls superclass method