Method: Mime::Type#initialize
- Defined in:
- lib/dependency/mime_type.rb
#initialize(string, symbol = nil, synonyms = []) ⇒ Type
Returns a new instance of Type.
170 171 172 173 |
# File 'lib/dependency/mime_type.rb', line 170 def initialize(string, symbol = nil, synonyms = []) @symbol, @synonyms = symbol, synonyms @string = string end |