class method
self.lookup
Ruby on Rails 6.1.7.10
Since v2.2.3Signature
self.lookup(string)
No documentation comment.
Parameters
-
stringreq
Source
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 145
def lookup(string)
LOOKUP[string] || Type.new(string)
end
Defined in actionpack/lib/action_dispatch/http/mime_type.rb line 145
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Mime::Type