Module: Roda::RodaPlugins::MultiRun::RequestMethods

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

Instance Method Summary collapse

Instance Method Details

#multi_runObject

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



91
92
93
94
95
96
# File 'lib/roda/plugins/multi_run.rb', line 91

def multi_run
  on self.class.multi_run_regexp do |prefix|
    yield prefix if block_given?
    run scope.class.multi_run_apps[prefix]
  end
end