Sha256: abf9cccb5614f69efd98577e6655d2526182e2fae01ff90497642e7b99a72576
Contents?: true
Size: 423 Bytes
Versions: 1
Compression:
Stored size: 423 Bytes
Contents
module Capcode module Helpers def render_binary( f, opts ) #:nodoc: @response['Content-Type'] = opts.delete(:content_type)||opts.delete('Content-Type')||"binary/octet-stream" opts.each do |k, v| k = k.to_s.split(/_/).map{|e| e.capitalize}.join("-") @response[k] = v end if self.respond_to?(f.to_sym) self.send(f) else f end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capcode-render-binary-0.3.0 | lib/capcode/render/binary.rb |