File: main.rb

# main.rb

Path: | lib/sinatra/main.rb
Last Update: | Tue Aug 10 13:34:55 -0600 2010

### Required files

sinatra/base optparse

### Methods

mime

### Included Modules

Sinatra::Delegator

### Public Instance methods

mime(ext, type)

[Source]

        # File lib/sinatra/main.rb, line 27
    27: def mime(ext, type)
    28:   ext = ".#{ext}" unless ext.to_s[0] == ?.
    29:   Rack::Mime::MIME_TYPES[ext.to_s] = type
    30: end

[Validate]