Module: TZInfo::Format2::TimezoneIndexDefinition::ClassMethods Private
Do not use. This module is for internal use only.
Relationships & Source Files | |
Defined in: | lib/tzinfo/format2/timezone_index_definition.rb |
Overview
Class methods for inclusion.
Instance Attribute Summary
- #data_timezones ⇒ Array<String> readonly Internal use only
- #linked_timezones ⇒ Array<String> readonly Internal use only
Instance Method Summary
-
#timezone_index {|definer| ... }
Internal use only
Defines the index.
Instance Attribute Details
#data_timezones ⇒ Array
<String
> (readonly)
# File 'lib/tzinfo/format2/timezone_index_definition.rb', line 33
attr_reader :data_timezones
#linked_timezones ⇒ Array
<String
> (readonly)
# File 'lib/tzinfo/format2/timezone_index_definition.rb', line 38
attr_reader :linked_timezones
Instance Method Details
#timezone_index {|definer| ... }
Defines the index.
# File 'lib/tzinfo/format2/timezone_index_definition.rb', line 46
def timezone_index definer = TimezoneIndexDefiner.new(StringDeduper.global) yield definer @data_timezones = definer.data_timezones.sort!.freeze @linked_timezones = definer.linked_timezones.sort!.freeze end