Class: Timezone::NilZone
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/timezone/nil_zone.rb |
Overview
A “nil” timezone object - representative of a missing timezone.
Instance Attribute Summary
-
#valid? ⇒ false
readonly
If this is a valid timezone.
Instance Method Summary
-
#inspect ⇒ String
A stubbed timezone debug string.
-
#name ⇒ nil
A stubbed timezone name.
-
#to_s ⇒ String
A stubbed timezone display string.
Instance Attribute Details
#valid? ⇒ false
(readonly)
If this is a valid timezone.
# File 'lib/timezone/nil_zone.rb', line 30
def valid? false end
Instance Method Details
#inspect ⇒ String
A stubbed timezone debug string.
# File 'lib/timezone/nil_zone.rb', line 23
def inspect '#<Timezone::NilZone>' end
#name ⇒ nil
A stubbed timezone name.
# File 'lib/timezone/nil_zone.rb', line 9
def name nil end
#to_s ⇒ String
A stubbed timezone display string.
# File 'lib/timezone/nil_zone.rb', line 16
def to_s 'NilZone' end