module Roda::RodaPlugins::MultiRun::ClassMethods

def freeze

Freeze the multi_run apps so that there can be no thread safety issues at runtime.
def freeze
  opts[:multi_run_apps].freeze
  super
end

def multi_run_apps

for the application.
Hash storing rack applications to dispatch to, keyed by the prefix
def multi_run_apps
  opts[:multi_run_apps]
end

def run(prefix, app)

r.multi_run is called.
Add a rack application to dispatch to for the given prefix when
def run(prefix, app)
  multi_run_apps[prefix.to_s] = app
  self::RodaRequest.refresh_multi_run_regexp!
end