instance method
duration_of_variable_length?
Ruby on Rails 6.1.7.10
Since v2.2.3 PrivateSignature
duration_of_variable_length?(obj)
No documentation comment.
Parameters
-
objreq
Source
# 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
Defined in activesupport/lib/active_support/time_with_zone.rb line 570
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeWithZone