Sha256: 6256c3686dea8d9bffe4bd3c1ae9239c8147c27840099e291b55d8bda509a8f8
Contents?: true
Size: 416 Bytes
Versions: 2
Compression:
Stored size: 416 Bytes
Contents
module Rubai class RackResponse def initialize(response=nil) @response = response end def respond_with(response) @response = response call end def call [response.status, response.headers, response.body] end def to_s "#{response.status}, #{response.headers}, #{response.body.join}" end private def response @response end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubai-0.1.2 | lib/rubai/rack_response.rb |
rubai-0.1.1 | lib/rubai/rack_response.rb |