Sha256: 099a275bf2883bc93d68adc738d2c51668bb979964918503b63975cc4185e2dc
Contents?: true
Size: 312 Bytes
Versions: 1
Compression:
Stored size: 312 Bytes
Contents
module Axlsx # This module defines some utils related with mime type detection module MimeTypeUtils # Detect a file mime type # @param [String] v File path # @return [String] File mime type def self.get_mime_type(v) ::MIME::Types.type_for(File.extname(v))&.first.to_s end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bonio-axlsx-2.2.3 | lib/axlsx/util/mime_type_utils.rb |