class Shotgun::Loader
def proceed_as_parent
def proceed_as_parent @writer.close rand result, status, headers = Marshal.load(@reader) body = Body.new(@child, @reader) case result when :ok [status, headers, body] when :error error, backtrace = status, headers body.close [ 500, {'Content-Type'=>'text/html;charset=utf-8'}, [format_error(error, backtrace)] ] else fail "unexpected response: #{result.inspect}" end end