123456789_123456789_123456789_123456789_123456789_

Module: TZInfo

Relationships & Source Files
Namespace Children
Modules:
Classes:
Exceptions:
Defined in: lib/tzinfo.rb,
lib/tzinfo/annual_rules.rb,
lib/tzinfo/country.rb,
lib/tzinfo/country_timezone.rb,
lib/tzinfo/data_source.rb,
lib/tzinfo/data_sources.rb,
lib/tzinfo/data_timezone.rb,
lib/tzinfo/datetime_with_offset.rb,
lib/tzinfo/format1.rb,
lib/tzinfo/format2.rb,
lib/tzinfo/info_timezone.rb,
lib/tzinfo/linked_timezone.rb,
lib/tzinfo/offset_timezone_period.rb,
lib/tzinfo/ruby_core_support.rb,
lib/tzinfo/string_deduper.rb,
lib/tzinfo/time_with_offset.rb,
lib/tzinfo/timestamp.rb,
lib/tzinfo/timestamp_with_offset.rb,
lib/tzinfo/timezone.rb,
lib/tzinfo/timezone_offset.rb,
lib/tzinfo/timezone_period.rb,
lib/tzinfo/timezone_proxy.rb,
lib/tzinfo/timezone_transition.rb,
lib/tzinfo/transition_rule.rb,
lib/tzinfo/transitions_timezone_period.rb,
lib/tzinfo/version.rb,
lib/tzinfo/with_offset.rb,
lib/tzinfo/data_sources/constant_offset_data_timezone_info.rb,
lib/tzinfo/data_sources/country_info.rb,
lib/tzinfo/data_sources/data_timezone_info.rb,
lib/tzinfo/data_sources/linked_timezone_info.rb,
lib/tzinfo/data_sources/posix_time_zone_parser.rb,
lib/tzinfo/data_sources/ruby_data_source.rb,
lib/tzinfo/data_sources/timezone_info.rb,
lib/tzinfo/data_sources/transitions_data_timezone_info.rb,
lib/tzinfo/data_sources/zoneinfo_data_source.rb,
lib/tzinfo/data_sources/zoneinfo_reader.rb,
lib/tzinfo/format1/country_definer.rb,
lib/tzinfo/format1/country_index_definition.rb,
lib/tzinfo/format1/timezone_definer.rb,
lib/tzinfo/format1/timezone_definition.rb,
lib/tzinfo/format1/timezone_index_definition.rb,
lib/tzinfo/format2/country_definer.rb,
lib/tzinfo/format2/country_index_definer.rb,
lib/tzinfo/format2/country_index_definition.rb,
lib/tzinfo/format2/timezone_definer.rb,
lib/tzinfo/format2/timezone_definition.rb,
lib/tzinfo/format2/timezone_index_definer.rb,
lib/tzinfo/format2/timezone_index_definition.rb

Overview

The top level module for TZInfo.

Constant Summary

Class Method Summary

  • .eager_load!

    Instructs the current DataSource to load all timezone and country data into memory (initializing the DataSource first if not previously accessed or set).

Class Method Details

.eager_load!

Instructs the current ::TZInfo::DataSource to load all timezone and country data into memory (initializing the ::TZInfo::DataSource first if not previously accessed or set).

This may be desirable in production environments to improve copy-on-write performance and to avoid flushing the constant cache every time a new timezone or country is loaded from ::TZInfo::DataSources::RubyDataSource.

[ GitHub ]

  
# File 'lib/tzinfo.rb', line 14

def eager_load!
  DataSource.get.eager_load!
end