Sha256: 185b1ff72f2382f179450e75940c096e0e1e307a7bab79b01df5a9b5f0965d53
Contents?: true
Size: 571 Bytes
Versions: 77
Compression:
Stored size: 571 Bytes
Contents
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
Version data entries
77 entries across 73 versions & 27 rubygems