Top Level Namespace

Includes:
Sinatra::Delegator

Defined Under Namespace

Modules: Sinatra

Instance Method Summary collapse

Methods included from Sinatra::Delegator

delegate

Instance Method Details

#mime(ext, type) ⇒ Object



27
28
29
30
# File 'lib/sinatra/main.rb', line 27

def mime(ext, type)
  ext = ".#{ext}" unless ext.to_s[0] == ?.
  Rack::Mime::MIME_TYPES[ext.to_s] = type
end