Sha256: 8cb97a56ebd7f25a73c9d860623a0a6861ab8e76873c473acbd036189afae893

Contents?: true

Size: 366 Bytes

Versions: 1

Compression:

Stored size: 366 Bytes

Contents

require 'mime/types'

module GroupDocs
  module Api
    module Helpers
      module MIME

        private

        #
        # Returns MIME type for file.
        # @api private
        #
        def mime_type(filepath)
          ::MIME::Types.type_for(filepath).first
        end

      end # MIME
    end # Helpers
  end # Api
end # GroupDocs

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
groupdocs-2.3.0 lib/groupdocs/api/helpers/mime_helper.rb