module TZInfo::Format1::TimezoneIndexDefinition::ClassMethods

def data_timezones

Returns:
  • (Array) - a frozen `Array` containing the identifiers of

Other tags:
    Private: -
def data_timezones
  unless @data_timezones.frozen?
    @data_timezones = @data_timezones.sort.freeze
  end
  @data_timezones
end

def linked_timezone(identifier)

Parameters:
  • identifier (String) -- the time zone identifier.
def linked_timezone(identifier)
  identifier = StringDeduper.global.dedupe(identifier)
  @timezones << identifier
  @linked_timezones << identifier
end

def linked_timezones

Returns:
  • (Array) - a frozen `Array` containing the identifiers of
def linked_timezones
  unless @linked_timezones.frozen?
    @linked_timezones = @linked_timezones.sort.freeze
  end
  @linked_timezones
end

def timezone(identifier)

Parameters:
  • identifier (String) -- the time zone identifier.
def timezone(identifier)
  identifier = StringDeduper.global.dedupe(identifier)
  @timezones << identifier
  @data_timezones << identifier
end