123456789_123456789_123456789_123456789_123456789_

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

Instance Method Summary

Instance Attribute Details

#valid?false (readonly)

If this is a valid timezone.

[ GitHub ]

  
# File 'lib/timezone/nil_zone.rb', line 30

def valid?
  false
end

Instance Method Details

#inspectString

A stubbed timezone debug string.

[ GitHub ]

  
# File 'lib/timezone/nil_zone.rb', line 23

def inspect
  '#<Timezone::NilZone>'
end

#namenil

A stubbed timezone name.

[ GitHub ]

  
# File 'lib/timezone/nil_zone.rb', line 9

def name
  nil
end

#to_sString

A stubbed timezone display string.

[ GitHub ]

  
# File 'lib/timezone/nil_zone.rb', line 16

def to_s
  'NilZone'
end