Class: ActiveSupport::TimeZone

Inherits:
Object
  • Object
show all
Extended by:
TZInfoExtension::ClassMethods
Includes:
TZInfoExtension::InstanceMethods
Defined in:
lib/has_zone/tzinfo.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from TZInfoExtension::ClassMethods

abbreviations_map

Methods included from TZInfoExtension::InstanceMethods

#abbreviations, #next_period

Class Method Details

.tzids_mapObject



49
50
51
52
53
54
55
# File 'lib/has_zone/tzinfo.rb', line 49

def self.tzids_map
  @tzids_map ||= begin
    (tzids_map = {}).tap do |tm|
      zones_map.each { |n, z| tm[z.identifier] ||= z }
    end
  end
end

Instance Method Details

#identifierObject



57
58
59
# File 'lib/has_zone/tzinfo.rb', line 57

def identifier
  self.tzinfo.try(:identifier)
end