# File lib_doc/rucy/local.rb, line 32 def content_type(path) curr_map = @suffix_map curr_type = curr_map[:content_type] path.upcase.reverse.each_byte do |c| break unless (curr_map.include? c) curr_map = curr_map[c] curr_type = curr_map[:content_type] if curr_map[:content_type] end curr_type end