module Roda::RodaPlugins::MultiRoute::RequestClassMethods

def named_route_regexp(namespace=nil)

A regexp matching any of the current named routes.
def named_route_regexp(namespace=nil)
  @namespaced_route_regexps[namespace] ||= /(#{Regexp.union(roda_class.named_routes(namespace).select{|s| s.is_a?(String)}.sort.reverse)})/
end