class Protocol::HTTP::Header::AcceptLanguage
The ‘accept-language` header represents a list of languages that the client can accept.
def languages
Parse the `accept-language` header value into a list of languages.
def languages self.map do |value| if match = value.match(LANGUAGE) Language.new(match[:name], match[:q]) else raise ParseError.new("Could not parse language: #{value.inspect}") end end end