method
fetch
v8.1.1 -
Show latest stable
- Class:
Mime
fetch(type, &block)public
No documentation available.
# 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