module Roda::RodaPlugins::MultiRun::RequestMethods

  1. lib/roda/plugins/multi_run.rb

Methods

Public Instance

  1. multi_run

Public Instance methods

multi_run()

If one of the stored route prefixes match the current request, dispatch the request to the appropriate rack application.

[show source]
    # File lib/roda/plugins/multi_run.rb
132 def multi_run
133   on self.class.multi_run_regexp do |prefix|
134     yield prefix if defined?(yield)
135     opts = scope.opts
136     run(opts[:multi_run_apps][prefix] || opts[:multi_run_app_blocks][prefix].call)
137   end
138 end