module Hydra::Derivatives::MimeTypeService

Public Class Methods

mime_type(file_path) click to toggle source

@param [String] file_path path to a file

# File lib/hydra/derivatives/services/mime_type_service.rb, line 6
def self.mime_type(file_path)
  MIME::Types.type_for(file_path).first.to_s
end