Module: Webbed::Helpers::RackResponseHelper::ClassMethods

Defined in:
lib/webbed/helpers/rack_response_helper.rb

Instance Method Summary collapse

Instance Method Details

#from_rack(rack_array) ⇒ Response

Converts a Rack response array to a Response.

The array has the same format as that defined in the Rack specification.

Parameters:

  • rack_array (Array)

Returns:



12
13
14
# File 'lib/webbed/helpers/rack_response_helper.rb', line 12

def from_rack(rack_array)
  Response.new(*rack_array)
end