Yes, HTTP bundles its own MIME type library. Maybe it should be spun off as a separate gem or something.
# File lib/http/mime_type.rb, line 13 def [](type) if type.is_a? Symbol @shortcuts[type] else @mime_types[type] end end
# File lib/http/mime_type.rb, line 44 def emit(obj) @emit_with ? @emit_with[obj] : obj end
# File lib/http/mime_type.rb, line 36 def emit_with(&block) @emit_with = block end
Generated with the Darkfish Rdoc Generator 2.