Module Waves::MimeTypes
In: lib/runtime/mime_types.rb

Waves::MimeTypes defines an interface for adding MIME types used in mapping requests to content types. Originally taken from Mongrel.

Methods

<<   []   mapping  

Public Class methods

TODO: This does not seem to be working.

[Source]

    # File lib/runtime/mime_types.rb, line 13
13:     def self.<<( mapping )
14:       mapping.merge!( mapping )
15:     end

[Source]

    # File lib/runtime/mime_types.rb, line 8
 8:     def self.[]( path )
 9:       mapping[ File.extname( path ) ]
10:     end

[Source]

    # File lib/runtime/mime_types.rb, line 17
17:     def self.mapping
18:       @mapping ||= Waves::MIME_TYPES
19:     end

[Validate]