123456789_123456789_123456789_123456789_123456789_

Module: TZInfo::Format2::CountryIndexDefinition Private

Do not use. This module is for internal use only.
Relationships & Source Files
Namespace Children
Modules:
Defined in: lib/tzinfo/format2/country_index_definition.rb

Overview

The format 2 country index file includes CountryIndexDefinition, which provides a country_index method used to define the country index.

Class Method Summary

  • .append_features(base) Internal use only

    Adds class methods to the includee and initializes class instance variables.

Class Method Details

.append_features(base)

Adds class methods to the includee and initializes class instance variables.

Parameters:

  • base (Module)

    the includee.

[ GitHub ]

  
# File 'lib/tzinfo/format2/country_index_definition.rb', line 16

def self.append_features(base)
  super
  base.extend(ClassMethods)
  base.instance_eval { @countries = {}.freeze }
end