method

lookup

rails latest stable - Class: Mime::Type
lookup(string)
public

No documentation available.

# 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