Method: TZInfo::DataSources::RubyDataSource#load_country_info

Defined in:
lib/tzinfo/data_sources/ruby_data_source.rb

#load_country_info(code) ⇒ DataSources::CountryInfo (protected)

Returns a CountryInfo instance for the given ISO 3166-1 alpha-2 country code.

Parameters:

  • code (String)

    an ISO 3166-1 alpha-2 country code.

Returns:

Raises:



104
105
106
# File 'lib/tzinfo/data_sources/ruby_data_source.rb', line 104

def load_country_info(code)
  lookup_country_info(@countries, code)
end