D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
td-agent
/
embedded
/
lib
/
ruby
/
gems
/
2.1.0
/
gems
/
tzinfo-1.2.3
/
lib
/
tzinfo
/
Filename :
timezone_definition.rb
back
Copy
module TZInfo # TimezoneDefinition is included into Timezone definition modules. # TimezoneDefinition provides the methods for defining timezones. # # @private module TimezoneDefinition #:nodoc: # Add class methods to the includee. def self.append_features(base) super base.extend(ClassMethods) end # Class methods for inclusion. # # @private module ClassMethods #:nodoc: # Returns and yields a TransitionDataTimezoneInfo object to define a # timezone. def timezone(identifier) yield @timezone = TransitionDataTimezoneInfo.new(identifier) end # Defines a linked timezone. def linked_timezone(identifier, link_to_identifier) @timezone = LinkedTimezoneInfo.new(identifier, link_to_identifier) end # Returns the last TimezoneInfo to be defined with timezone or # linked_timezone. def get @timezone end end end end