Module: LocaleSetter::Domain

Defined in:
lib/locale_setter/domain.rb

Class Method Summary collapse

Class Method Details

.for(domain, available) ⇒ Object



4
5
6
# File 'lib/locale_setter/domain.rb', line 4

def self.for(domain, available)
  LocaleSetter::Matcher.match get_domain(domain), available
end

.get_domain(domain) ⇒ Object



8
9
10
# File 'lib/locale_setter/domain.rb', line 8

def self.get_domain(domain)
  LocaleSetter.config.localized_domains[domain]
end

.localized_domains=(domains) ⇒ Object



12
13
14
15
# File 'lib/locale_setter/domain.rb', line 12

def self.localized_domains=(domains)
  warn "Deprecation warning. You should use a new block syntax for configuration."
  LocaleSetter.config.localized_domains = domains
end