module Roda::RodaPlugins::BeforeHook::InstanceMethods
Public Instance Methods
Source
# File lib/roda/plugins/_before_hook.rb, line 25 def _roda_run_main_route(r) _roda_before super end
Run internal before hooks before running the main roda route.
Calls superclass method
Source
# File lib/roda/plugins/_before_hook.rb, line 15 def call(&block) # RODA4: Remove super do _roda_before instance_exec(@_request, &block) # call Fallback end end
Run internal before hooks - Old Dispatch API.
Calls superclass method
Private Instance Methods
Source
# File lib/roda/plugins/_before_hook.rb, line 34 def _roda_before end
Default empty implementation of _roda_before
, usually overridden by Roda.def_roda_before.