Sha256: 98e8ef9c66875d72eba321efc44c85c273640f68916a1ee194559fadf49c930b
Contents?: true
Size: 459 Bytes
Versions: 20
Compression:
Stored size: 459 Bytes
Contents
module Grape module ServeFile # A simple class used to identify responses which represent files and do not # need to be formatted or pre-read by Rack::Response class FileResponse attr_reader :file # @param file [Object] def initialize(file) @file = file end # Equality provided mostly for tests. # # @return [Boolean] def ==(other) file == other.file end end end end
Version data entries
20 entries across 20 versions & 2 rubygems