Module: TZInfo::Format1::TimezoneIndexDefinition::ClassMethods

Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/tzinfo-2.0.5/lib/tzinfo/format1/timezone_index_definition.rb

Overview

Class methods for inclusion.

Instance Method Summary collapse

Instance Method Details

#data_timezonesArray<String>

Returns a frozen ‘Array` containing the identifiers of all data time zones. Identifiers are sorted according to `String#<=>`.

Returns:

  • (Array<String>)

    a frozen ‘Array` containing the identifiers of all data time zones. Identifiers are sorted according to `String#<=>`.



32
33
34
35
36
37
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/tzinfo-2.0.5/lib/tzinfo/format1/timezone_index_definition.rb', line 32

def data_timezones
  unless @data_timezones.frozen?
    @data_timezones = @data_timezones.sort.freeze
  end
  @data_timezones
end

#linked_timezonesArray<String>

Returns a frozen ‘Array` containing the identifiers of all linked time zones. Identifiers are sorted according to `String#<=>`.

Returns:

  • (Array<String>)

    a frozen ‘Array` containing the identifiers of all linked time zones. Identifiers are sorted according to `String#<=>`.



42
43
44
45
46
47
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/tzinfo-2.0.5/lib/tzinfo/format1/timezone_index_definition.rb', line 42

def linked_timezones
  unless @linked_timezones.frozen?
    @linked_timezones = @linked_timezones.sort.freeze
  end
  @linked_timezones
end