method
duration_of_variable_length?
v6.1.7.7 -
Show latest stable
- Class:
ActiveSupport::TimeWithZone
duration_of_variable_length?(obj)private
No documentation available.
# File activesupport/lib/active_support/time_with_zone.rb, line 570
def duration_of_variable_length?(obj)
ActiveSupport::Duration === obj && obj.parts.any? { |p| [:years, :months, :weeks, :days].include?(p[0]) }
end