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 124 def multi_run_regexp 125 @multi_run_regexp || refresh_multi_run_regexp! 126 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 119 def refresh_multi_run_regexp! 120 @multi_run_regexp = /(#{Regexp.union((roda_class.opts[:multi_run_apps].keys + roda_class.opts[:multi_run_app_blocks].keys).sort.reverse)})/ 121 end