class Response
Handles how to create Rack::Response
Public Class Methods
new(content)
click to toggle source
Calls superclass method
# File lib/cubic/response.rb, line 4 def initialize(content) if content[:body].respond_to?(:call) return super('content', &content[:body]) end body = content[:body] || '' status = content[:status] || 200 headers = content[:headers] || {} super(body, status, headers) end