module Roda::RodaPlugins::MultiRoute::RequestMethods
def multi_route(namespace=nil)
If the named route does not handle the request, and a block
named routes. If so, call that named route. If not, do nothing.
Check if the first segment in the path matches any of the current
def multi_route(namespace=nil) on self.class.named_route_regexp(namespace) do |section| r = route(section, namespace) if block_given? yield else r end end end
def route(name, namespace=nil)
def route(name, namespace=nil) scope.instance_exec(self, &roda_class.named_route(name, namespace)) end