module Mime
def [](type)
def [](type) return type if type.is_a?(Type) Type.lookup_by_extension(type) end
def fetch(type)
def fetch(type) return type if type.is_a?(Type) EXTENSION_LOOKUP.fetch(type.to_s) { |k| yield k } end
def [](type) return type if type.is_a?(Type) Type.lookup_by_extension(type) end
def fetch(type) return type if type.is_a?(Type) EXTENSION_LOOKUP.fetch(type.to_s) { |k| yield k } end