Class: NullFortyTime

Inherits:
FortyTime show all
Defined in:
lib/null_forty_time.rb

Constant Summary

Constants inherited from FortyTime

FortyTime::VERSION

Instance Attribute Summary

Attributes inherited from FortyTime

#minutes

Instance Method Summary collapse

Methods inherited from FortyTime

parse, parse_string

Constructor Details

#initializeNullFortyTime

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_sObject



18
19
20
# File 'lib/null_forty_time.rb', line 18

def to_s
  ''
end

#valueObject



8
# File 'lib/null_forty_time.rb', line 8

def value; end