class TZInfo::Format2::TimezoneIndexDefiner
:nodoc:
@private
{TimezoneIndexDefinition} to allow the time zone index to be defined.
Instances of {TimezoneIndexDefiner} are yielded by
def data_timezone(identifier)
-
identifier
(String
) -- the time zone identifier.
def data_timezone(identifier) # Dedupe non-frozen literals from format 1 on all Ruby versions and # format 2 on Ruby < 2.3 (without frozen_string_literal support). @data_timezones << @string_deduper.dedupe(identifier) end
def initialize(string_deduper)
-
string_deduper
(StringDeduper
) -- a {StringDeduper} instance to use
def initialize(string_deduper) @string_deduper = string_deduper @data_timezones = [] @linked_timezones = [] end
def linked_timezone(identifier)
-
identifier
(String
) -- the time zone identifier.
def linked_timezone(identifier) # Dedupe non-frozen literals from format 1 on all Ruby versions and # format 2 on Ruby < 2.3 (without frozen_string_literal support). @linked_timezones << @string_deduper.dedupe(identifier) end