module Roda::RodaPlugins::BeforeHook::InstanceMethods

  1. lib/roda/plugins/_before_hook.rb

Methods

Public Instance

  1. _roda_run_main_route
  2. call

Public Instance methods

_roda_run_main_route(r)

Run internal before hooks before running the main roda route.

[show source]
   # File lib/roda/plugins/_before_hook.rb
25 def _roda_run_main_route(r)
26   _roda_before
27   super
28 end
call(&block)

Run internal before hooks - Old Dispatch API.

[show source]
   # File lib/roda/plugins/_before_hook.rb
15 def call(&block)
16   # RODA4: Remove
17   super do
18     _roda_before
19     instance_exec(@_request, &block) # call Fallback
20   end
21 end