Class: Achoo::OpenTimespan

Inherits:
Timespan show all
Defined in:
lib/achoo/open_timespan.rb

Constant Summary

Constants inherited from Timespan

Timespan::SECONDS_IN_AN_HOUR, Timespan::SECONDS_IN_A_DAY, Timespan::SECONDS_IN_A_MINUTE

Instance Attribute Summary

Attributes inherited from Timespan

#end, #start

Instance Method Summary collapse

Methods inherited from Timespan

#contains?, #initialize, #overlaps?

Constructor Details

This class inherits a constructor from Achoo::Timespan

Instance Method Details

#to_sObject



7
8
9
10
11
12
# File 'lib/achoo/open_timespan.rb', line 7

def to_s
  s = super
  s.sub!(/^\([^)]+\)/, '(?+??:??)')
  s.sub!(/- .*$/, '- ?')
  s
end