Method: Date#plus_with_duration
- Defined in:
- activesupport/lib/active_support/core_ext/date/calculations.rb
#plus_with_duration(other) ⇒ Object Also known as: +
:nodoc:
90 91 92 93 94 95 96 |
# File 'activesupport/lib/active_support/core_ext/date/calculations.rb', line 90 def plus_with_duration(other) # :nodoc: if ActiveSupport::Duration === other other.since(self) else plus_without_duration(other) end end |