Class: Time
- Inherits:
-
Object
- Object
- Time
- Defined in:
- lib/extra/period.rb
Instance Method Summary collapse
Instance Method Details
#+(arg) ⇒ Object
223 224 225 226 |
# File 'lib/extra/period.rb', line 223 def + arg return self + arg.value if Period === arg preperiod_plus arg end |
#-(arg) ⇒ Object
228 229 230 231 |
# File 'lib/extra/period.rb', line 228 def - arg return self + (-arg.value) if Period === arg preperiod_minus arg end |