method
years
v4.2.7 -
Show latest stable
- Class:
Integer
years()public
No documentation available.
# File activesupport/lib/active_support/core_ext/integer/time.rb, line 25
def years
ActiveSupport::Duration.new(self * 365.25.days, [[:years, self]])
end