Method: Mime.fetch

Defined in:
actionpack/lib/action_dispatch/http/mime_type.rb

.fetch(type, &block) ⇒ Object



64
65
66
67
# 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