Sha256: 1e7eae778360da42096b2e2abdd0b9a301af03b9684776cdca671f00926cd321
Contents?: true
Size: 747 Bytes
Versions: 76
Compression:
Stored size: 747 Bytes
Contents
module TZInfo # Represents a timezone defined by a data source. class TimezoneInfo # The timezone identifier. attr_reader :identifier # Constructs a new TimezoneInfo with an identifier. def initialize(identifier) @identifier = identifier end # Returns internal object state as a programmer-readable string. def inspect "#<#{self.class}: #@identifier>" end # Constructs a Timezone instance for the timezone represented by this # TimezoneInfo. def create_timezone raise_not_implemented('create_timezone') end private def raise_not_implemented(method_name) raise NotImplementedError, "Subclasses must override #{method_name}" end end end
Version data entries
76 entries across 72 versions & 27 rubygems