lookup(string)
public
Hide source
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 164 def lookup(string) # fallback to the media-type without parameters if it was not found LOOKUP[string] || LOOKUP[string.split(";", 2)[0]&.rstrip] || Type.new(string) end