Sha256: 13374351f41a1e96990cffe3d20f36ebd68518063ba80f2e8f0ae678f698603d

Contents?: true

Size: 345 Bytes

Versions: 32

Compression:

Stored size: 345 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

32 entries across 32 versions & 1 rubygems

Version Path
groupdocs-2.2.0 lib/groupdocs/api/helpers/mime_helper.rb
groupdocs-2.1.0 lib/groupdocs/api/helpers/mime_helper.rb
groupdocs-2.0.0 lib/groupdocs/api/helpers/mime_helper.rb
groupdocs-1.9.0 lib/groupdocs/api/helpers/mime_helper.rb
groupdocs-1.8.1 lib/groupdocs/api/helpers/mime_helper.rb
groupdocs-1.8.0 lib/groupdocs/api/helpers/mime_helper.rb
groupdocs-1.7.0 lib/groupdocs/api/helpers/mime_helper.rb
groupdocs-1.6.0 lib/groupdocs/api/helpers/mime_helper.rb
groupdocs-1.5.9 lib/groupdocs/api/helpers/mime_helper.rb
groupdocs-1.5.8 lib/groupdocs/api/helpers/mime_helper.rb
groupdocs-1.5.7 lib/groupdocs/api/helpers/mime_helper.rb
groupdocs-1.5.6 lib/groupdocs/api/helpers/mime_helper.rb
groupdocs-1.5.5 lib/groupdocs/api/helpers/mime_helper.rb
groupdocs-1.5.4 lib/groupdocs/api/helpers/mime_helper.rb
groupdocs-1.5.3 lib/groupdocs/api/helpers/mime_helper.rb
groupdocs-1.5.2 lib/groupdocs/api/helpers/mime_helper.rb
groupdocs-1.5.1 lib/groupdocs/api/helpers/mime_helper.rb
groupdocs-1.5.0 lib/groupdocs/api/helpers/mime_helper.rb
groupdocs-1.4.2 lib/groupdocs/api/helpers/mime_helper.rb
groupdocs-1.4.1 lib/groupdocs/api/helpers/mime_helper.rb