Sha256: 8b3b599507a588dcb7db4c61f1ee4c38e11c1bfdbae33c957a8844d52f552046

Contents?: true

Size: 171 Bytes

Versions: 2

Compression:

Stored size: 171 Bytes

Contents

# encoding: UTF-8
require 'shellwords'

module EaseHTTP
  class Utils
    def self.mime_type(path)
      `file -b --mime-type #{path.shellescape}`.chomp
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ease_http-0.3.0 lib/ease_http/utils.rb
ease_http-0.2.0 lib/ease_http/utils.rb