Method: Date#minus_with_duration
- Defined in:
- activesupport/lib/active_support/core_ext/date/calculations.rb
#minus_with_duration(other) ⇒ Object Also known as: -
:nodoc:
100 101 102 103 104 105 106 |
# File 'activesupport/lib/active_support/core_ext/date/calculations.rb', line 100 def minus_with_duration(other) # :nodoc: if ActiveSupport::Duration === other plus_with_duration(-other) else minus_without_duration(other) end end |