Sha256: 92e5cb19912010dad60914f0a55a49c585800225a41dbcabb34ada7157a8506e
Contents?: true
Size: 463 Bytes
Versions: 36
Compression:
Stored size: 463 Bytes
Contents
module Rack::App::InstanceMethods::Core attr_writer :request, :response def request @request || raise("request object is not set for #{self.class}") end def response @response || raise("response object is not set for #{self.class}") end def respond_with(value = response) case value when Rack::Response throw(:rack_response, value) else throw(:response_body, value) end end alias finish! respond_with end
Version data entries
36 entries across 36 versions & 2 rubygems