Module: Roda::RodaPlugins::BeforeHook
- Defined in:
- lib/roda/plugins/_before_hook.rb
Overview
Internal before hook module, not for external use. Allows for plugins to configure the order in which before processing is done by using roda_before* private instance methods that are called in sorted order.
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
-
.configure(app) ⇒ Object
Rebuild the rack app if the rack app already exists, so the before hooks are setup inside the rack app route block.
Class Method Details
.configure(app) ⇒ Object
Rebuild the rack app if the rack app already exists, so the before hooks are setup inside the rack app route block.
14 15 16 17 18 |
# File 'lib/roda/plugins/_before_hook.rb', line 14 def self.configure(app) app.instance_exec do build_rack_app if @app end end |