instance method
years
Ruby on Rails 5.0.7.2
Since v3.0.20Signature
years()
No documentation comment.
Source
# File activesupport/lib/active_support/core_ext/integer/time.rb, line 25
def years
ActiveSupport::Duration.years(self)
end
Defined in activesupport/lib/active_support/core_ext/integer/time.rb line 25
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Integer