module Mime

Experimental RBS support (using type sampling data from the type_fusion project).

# sig/action_dispatch/http/mime_type.rbs

module Mime
  def []: (Symbol type) -> Mime::Type
end

def [](type)

Experimental RBS support (using type sampling data from the type_fusion project).

def []: (Symbol type) -> Mime::Type

This signature was generated using 5 samples from 1 application.

def [](type)
  return type if type.is_a?(Type)
  Type.lookup_by_extension(type)
end

def fetch(type, &block)

def fetch(type, &block)
  return type if type.is_a?(Type)
  EXTENSION_LOOKUP.fetch(type.to_s, &block)
end