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