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