Class: Achoo::OpenTimespan
- 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
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_s ⇒ Object
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 |