Module: Roda::RodaPlugins::MultiRoute::RequestClassMethods

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

Instance Method Summary collapse

Instance Method Details

#named_route_regexpObject

A regexp matching any of the current named routes.



91
92
93
# File 'lib/roda/plugins/multi_route.rb', line 91

def named_route_regexp
  @named_route_regexp ||= /(#{Regexp.union(roda_class.named_routes)})/
end