Sha256: adfba27844274c8e654c726fb6d01f6a623947f68ed02247e28e69d8d0617f37
Contents?: true
Size: 454 Bytes
Versions: 6
Compression:
Stored size: 454 Bytes
Contents
module Shutterbug module Handlers module FileHandlers class PngFile < Base def file_extension "png" end def mime_type "image/png" end def handle(helper, req, env) local_filename = regex.match(req.path)[1] file = @config.storage.new(local_filename,self) helper.good_response(file.get_content, self.mime_type) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems