Class: TZInfo::TimezoneInfo
- Defined in:
- lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_info.rb
Overview
Represents a timezone defined in a data module.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#identifier ⇒ Object
readonly
The timezone identifier.
Instance Method Summary collapse
-
#initialize(identifier) ⇒ TimezoneInfo
constructor
Constructs a new TimezoneInfo with an identifier.
-
#inspect ⇒ Object
Returns internal object state as a programmer-readable string.
Constructor Details
#initialize(identifier) ⇒ TimezoneInfo
Constructs a new TimezoneInfo with an identifier.
31 32 33 |
# File 'lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_info.rb', line 31 def initialize(identifier) @identifier = identifier end |
Instance Attribute Details
#identifier ⇒ Object (readonly)
The timezone identifier.
28 29 30 |
# File 'lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_info.rb', line 28 def identifier @identifier end |
Instance Method Details
#inspect ⇒ Object
Returns internal object state as a programmer-readable string.
36 37 38 |
# File 'lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_info.rb', line 36 def inspect "#<#{self.class}: #@identifier>" end |