Class: Timezone::NilZone
- Inherits:
-
Object
- Object
- Timezone::NilZone
- Defined in:
- lib/timezone/nil_zone.rb
Overview
A “nil” timezone object - representative of a missing timezone.
Instance Method Summary collapse
-
#inspect ⇒ String
A stubbed timezone debug string.
-
#name ⇒ nil
A stubbed timezone name.
-
#to_s ⇒ String
A stubbed timezone display string.
-
#valid? ⇒ false
If this is a valid timezone.
Instance Method Details
#inspect ⇒ String
A stubbed timezone debug string.
23 24 25 |
# File 'lib/timezone/nil_zone.rb', line 23 def inspect '#<Timezone::NilZone>' end |
#name ⇒ nil
A stubbed timezone name.
9 10 11 |
# File 'lib/timezone/nil_zone.rb', line 9 def name nil end |
#to_s ⇒ String
A stubbed timezone display string.
16 17 18 |
# File 'lib/timezone/nil_zone.rb', line 16 def to_s 'NilZone' end |
#valid? ⇒ false
If this is a valid timezone.
30 31 32 |
# File 'lib/timezone/nil_zone.rb', line 30 def valid? false end |