method
duration_of_variable_length?
duration_of_variable_length?(obj)
private
Hide source
# File activesupport/lib/active_support/time_with_zone.rb, line 498 def duration_of_variable_length?(obj) ActiveSupport::Duration === obj && obj.parts.any? { |p| [:years, :months, :weeks, :days].include?(p[0]) } end