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

Version Path
shutterbug-0.2.5 lib/shutterbug/handlers/file_handlers/png_file.rb
shutterbug-0.2.1 lib/shutterbug/handlers/file_handlers/png_file.rb
shutterbug-0.2.0 lib/shutterbug/handlers/file_handlers/png_file.rb
shutterbug-0.1.2 lib/shutterbug/handlers/file_handlers/png_file.rb
shutterbug-0.1.1 lib/shutterbug/handlers/file_handlers/png_file.rb
shutterbug-0.1.0 lib/shutterbug/handlers/file_handlers/png_file.rb