module Roda::RodaPlugins::Base::RequestMethods
def block_result_body(result)
a body. By default, a String is returned directly, and nil is
The body to use for the response if the response does not already have
def block_result_body(result) case result when String result when nil, false # nothing else if roda_class.opts[:unsupported_block_result] == :raise raise RodaError, "unsupported block result: #{result.inspect}" end end end