method
new
v7.1.3.2 -
Show latest stable
- Class:
Mime::Type::AcceptItem
new(index, name, q = nil)public
No documentation available.
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 91
def initialize(index, name, q = nil)
@index = index
@name = name
q ||= 0.0 if @name == "*/*" # Default wildcard match to end of list.
@q = ((q || 1.0).to_f * 100).to_i
end