Module: LocaleSetter::HTTP

Defined in:
lib/locale_setter/http.rb

Defined Under Namespace

Modules: AcceptLanguageParser

Class Method Summary collapse

Class Method Details

.for(accept_language, available) ⇒ Object



3
4
5
# File 'lib/locale_setter/http.rb', line 3

def self.for(accept_language, available)
  LocaleSetter::Matcher.match(AcceptLanguageParser.parse(accept_language), available)
end