years()
Returns a Duration instance matching the number of years provided.
2.years # => 2 years
# File activesupport/lib/active_support/core_ext/integer/time.rb, line 18 def years ActiveSupport::Duration.years(self) end