File: C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/tzinfo-1.2.11/lib/tzinfo/info_timezone.rb
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