Module: AS::Duration::Operations::DateAndTime
Instance Method Summary collapse
Instance Method Details
#+(other) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/as/duration/operations.rb', line 5 def +(other) if Duration === other other.since(self) else super end end |
#-(other) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/as/duration/operations.rb', line 13 def -(other) if Duration === other other.until(self) else super end end |