Class: Achoo::Temporal::OpenTimespan

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

Instance Method Summary collapse

Methods inherited from Timespan

#contains?, #initialize, #overlaps?

Constructor Details

This class inherits a constructor from Achoo::Temporal::Timespan

Instance Method Details

#to_sObject



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

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