module Qeweney::MimeTypes

def self.[](ref)

def self.[](ref)
  case ref
  when Symbol
    TYPES[ref.to_s]
  when EXT_REGEXP
    TYPES[Regexp.last_match(1)]
  when ''
    nil
  else
    raise "Invalid argument #{ref.inspect}"
  end
end