Sha256: e12069c5d6eac543b70835cced3658fb919765445fc08a9acc9bc1f2da89a7a5
Contents?: true
Size: 354 Bytes
Versions: 1
Compression:
Stored size: 354 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 self.send(f) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capcode-render-binary-0.2.0 | lib/capcode/render/binary.rb |