Sha256: 10949ecadc70ae7edb7f888e6e49ee5efc0dbfa33a5f3af170631f852462be11

Contents?: true

Size: 542 Bytes

Versions: 5

Compression:

Stored size: 542 Bytes

Contents

require 'singleton'
require 'multi_mime/null_type'

module MultiMime
  class Adapter
    include Singleton
    class << self
      def type_for(mime_type, opts = {})
        instance.type_for(mime_type, opts)
      end

      def type_for_extension(extension, opts = {})
        instance.type_for_extension(extension, opts)
      end

      def type_for_path(path, opts = {})
        instance.type_for_path(path, opts)
      end

      def type_for_file(file, opts = {})
        instance.type_for_file(file, opts)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
multi_mime-1.1.0 lib/multi_mime/adapter.rb
multi_mime-1.0.1 lib/multi_mime/adapter.rb
multi_mime-1.0 lib/multi_mime/adapter.rb
multi_mime-0.0.4 lib/multi_mime/adapter.rb
multi_mime-0.0.3 lib/multi_mime/adapter.rb