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 :
info_timezone.rb
back
Copy
module TZInfo # A Timezone based on a TimezoneInfo. # # @private class InfoTimezone < Timezone #:nodoc: # Constructs a new InfoTimezone with a TimezoneInfo instance. def self.new(info) tz = super() tz.send(:setup, info) tz end # The identifier of the timezone, e.g. "Europe/Paris". def identifier @info.identifier end protected # The TimezoneInfo for this Timezone. def info @info end def setup(info) @info = info end end end