class Mime::Type::AcceptItem
:nodoc:
A simple helper class used in parsing the accept header.
def <=>(item)
def <=>(item) result = item.q <=> @q result = @index <=> item.index if result == 0 result end
def initialize(index, name, q = nil)
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