class method
self.fetch
Ruby on Rails 8.0.4
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 64
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 64
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Mime