class method
self.fetch
Ruby on Rails 7.1.6
Since v4.0.13Signature
self.fetch(type, &block)
No documentation comment.
Parameters
-
typereq -
blockblock
Source
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 62
def fetch(type, &block)
return type if type.is_a?(Type)
EXTENSION_LOOKUP.fetch(type.to_s, &block)
end
Defined in actionpack/lib/action_dispatch/http/mime_type.rb line 62
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Mime