Class: NullFortyTime
Constant Summary
Constants inherited from FortyTime
Instance Attribute Summary
Attributes inherited from FortyTime
Instance Method Summary collapse
- #+(other) ⇒ Object
- #-(other) ⇒ Object
-
#initialize ⇒ NullFortyTime
constructor
A new instance of NullFortyTime.
- #to_s ⇒ Object
- #value ⇒ Object
Methods inherited from FortyTime
Constructor Details
#initialize ⇒ NullFortyTime
Returns a new instance of NullFortyTime.
4 5 6 |
# File 'lib/null_forty_time.rb', line 4 def initialize super(0) end |
Instance Method Details
#+(other) ⇒ Object
10 11 12 |
# File 'lib/null_forty_time.rb', line 10 def +(other) other end |
#-(other) ⇒ Object
14 15 16 |
# File 'lib/null_forty_time.rb', line 14 def -(other) other end |
#to_s ⇒ Object
18 19 20 |
# File 'lib/null_forty_time.rb', line 18 def to_s '' end |
#value ⇒ Object
8 |
# File 'lib/null_forty_time.rb', line 8 def value; end |