Method: MimeTypeSet#initialize
- Defined in:
- lib/yodel/mime_types/mime_type_set.rb
#initialize ⇒ MimeTypeSet
Returns a new instance of MimeTypeSet.
3 4 5 6 7 8 |
# File 'lib/yodel/mime_types/mime_type_set.rb', line 3 def initialize @default = nil # default mime type when no other can be matched @types = {} # index by type name (:html) @extensions = {} # index by type extensions (html, htm) @mime_types = {} # index by mime types (text/html) end |