Module: TZInfo::Format2::CountryIndexDefinition::ClassMethods Private
Do not use. This module is for internal use only.
Relationships & Source Files | |
Defined in: | lib/tzinfo/format2/country_index_definition.rb |
Overview
Class methods for inclusion.
Instance Attribute Summary
- #countries ⇒ Hash<String, DataSources::CountryInfo> readonly Internal use only
Instance Method Summary
-
#country_index {|definer| ... }
private
Internal use only
Defines the index.
Instance Attribute Details
#countries ⇒ Hash
<String
, DataSources::CountryInfo> (readonly)
# File 'lib/tzinfo/format2/country_index_definition.rb', line 29
attr_reader :countries
Instance Method Details
#country_index {|definer| ... } (private)
Defines the index.
# File 'lib/tzinfo/format2/country_index_definition.rb', line 38
def country_index definer = CountryIndexDefiner.new(StringDeduper.global, StringDeduper.new) yield definer @countries = definer.countries.freeze end