Module: Roda::RodaPlugins::MultiRun::ClassMethods
- Defined in:
- lib/roda/plugins/multi_run.rb
Instance Attribute Summary collapse
-
#multi_run_apps ⇒ Object
readonly
Hash storing rack applications to dispatch to, keyed by the prefix for the application.
Instance Method Summary collapse
-
#run(prefix, app) ⇒ Object
Add a rack application to dispatch to for the given prefix when r.multi_run is called.
Instance Attribute Details
#multi_run_apps ⇒ Object (readonly)
Hash storing rack applications to dispatch to, keyed by the prefix for the application.
45 46 47 |
# File 'lib/roda/plugins/multi_run.rb', line 45 def multi_run_apps @multi_run_apps end |
Instance Method Details
#run(prefix, app) ⇒ Object
Add a rack application to dispatch to for the given prefix when r.multi_run is called.
49 50 51 52 |
# File 'lib/roda/plugins/multi_run.rb', line 49 def run(prefix, app) @multi_run_apps[prefix.to_s] = app self::RodaRequest.refresh_multi_run_regexp! end |