module Mime

def [](type)

def [](type)
  return type if type.is_a?(Type)
  Type.lookup_by_extension(type)
end

def fetch(type, &block)

def fetch(type, &block)
  return type if type.is_a?(Type)
  EXTENSION_LOOKUP.fetch(type.to_s, &block)
end