Method: Mime::Type#initialize

Defined in:
lib/action_controller/mime_type.rb

#initialize(string, symbol = nil, synonyms = []) ⇒ Type

Returns a new instance of Type.



147
148
149
150
# File 'lib/action_controller/mime_type.rb', line 147

def initialize(string, symbol = nil, synonyms = [])
  @symbol, @synonyms = symbol, synonyms
  @string = string
end