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_info.rb
back
Copy
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