# File MIME/types.rb, line 908 def Types.[](type_string) if type_string.class == Regexp matches = [] @@type_list.each_key do |k| matches << @@type_list[k] if k =~ type_string end matches.flatten! else mime = MIME::Type.simplified(type_string) @@type_list[mime] end end