Module: Timezone::Loader

Defined in:
lib/timezone/loader.rb

Constant Summary collapse

ZONE_FILE_PATH =
File.expand_path(File.dirname(__FILE__)+'/../../data')
SOURCE_BIT =
0

Class Method Summary collapse

Class Method Details

.load(zone) ⇒ Object



9
10
11
12
# File 'lib/timezone/loader.rb', line 9

def load(zone)
  @rules ||= {}
  @rules[zone] ||= parse_zone_data(get_zone_data(zone))
end

.namesObject



14
15
16
# File 'lib/timezone/loader.rb', line 14

def names
  @@names ||= parse_zone_names
end