module Roda::RodaPlugins::Base::InstanceMethods
def call(&block)
the route block can throw :halt at any point with the
receiver, with the related request. Catch :halt so that
instance_exec the route block in the scope of the
def call(&block) catch(:halt) do r = @_request r.block_result(instance_exec(r, &block)) @_response.finish end end