method
duration_of_variable_length?
v2.2.1 -
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 325
def duration_of_variable_length?(obj)
ActiveSupport::Duration === obj && obj.parts.flatten.detect {|p| [:years, :months, :days].include? p }
end