I18nData

Constants

VERSION

Public Instance Methods

countries(language_code='EN') click to toggle source
# File lib/i18n_data.rb, line 10
def countries(language_code='EN')
  data_provider.codes(:countries, language_code.to_s.upcase)
end
country_code(name) click to toggle source
# File lib/i18n_data.rb, line 14
def country_code(name)
  recognise_code(:countries, name)
end
data_provider() click to toggle source
# File lib/i18n_data.rb, line 22
def data_provider
  if @data_provider
    @data_provider
  else
    require 'i18n_data/file_data_provider'
    FileDataProvider
  end
end
data_provider=(provider) click to toggle source
# File lib/i18n_data.rb, line 31
def data_provider=(provider)
  @data_provider = provider
end
language_code(name) click to toggle source
# File lib/i18n_data.rb, line 18
def language_code(name)
  recognise_code(:languages, name)
end
languages(language_code='EN') click to toggle source
# File lib/i18n_data.rb, line 6
def languages(language_code='EN')
  data_provider.codes(:languages, language_code.to_s.upcase)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.