module Roda::RodaPlugins::Hooks::InstanceMethods

def _route(*, &block)

execute the after hooks before returning.
Before routing, execute the before hooks, and
def _route(*, &block)
  if b = opts[:before_hook]
    instance_exec(&b)
  end
  res = super
ensure
  if b = opts[:after_hook]
    instance_exec(res, &b)
  end
end