Module: Webbed::Helpers::RackResponseHelper::ClassMethods
- Defined in:
- lib/webbed/helpers/rack_response_helper.rb
Instance Method Summary collapse
-
#from_rack(rack_array) ⇒ Response
Converts a Rack response array to a Response.
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.
12 13 14 |
# File 'lib/webbed/helpers/rack_response_helper.rb', line 12 def from_rack(rack_array) Response.new(*rack_array) end |