# File MIME/types.rb, line 928 def Types.type_for(filename) fn = filename.chomp.downcase.gsub(/.*\./, '') if @@type_index.include?(fn) @@type_index[fn] else nil end end