module Roda::RodaPlugins::MultiRun::RequestClassMethods

  1. lib/roda/plugins/multi_run.rb

Public Instance methods

multi_run_regexp()

Refresh the multi_run_regexp if it hasn’t been loaded yet.

[show source]
    # File lib/roda/plugins/multi_run.rb
121 def multi_run_regexp
122   @multi_run_regexp || refresh_multi_run_regexp!
123 end
refresh_multi_run_regexp!()

Refresh the multi_run_regexp, using the stored route prefixes, preferring longer routes before shorter routes.

[show source]
    # File lib/roda/plugins/multi_run.rb
116 def refresh_multi_run_regexp!
117   @multi_run_regexp = /(#{Regexp.union((roda_class.multi_run_apps.keys + roda_class.multi_run_app_blocks.keys).sort.reverse)})/
118 end