class method
self.new
Ruby on Rails 4.2.9
Since v2.2.3Signature
self.new(string, symbol = nil, synonyms = [])
No documentation comment.
Parameters
-
stringreq -
symbolopt = nil -
synonymsopt = []
Source
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 230
def initialize(string, symbol = nil, synonyms = [])
@symbol, @synonyms = symbol, synonyms
@string = string
@hash = [@string, @synonyms, @symbol].hash
end
Defined in actionpack/lib/action_dispatch/http/mime_type.rb line 230
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Mime::Type