Method: Integer#years

Defined in:
motion/core_ext/integer/time.rb

#yearsObject Also known as: year



37
38
39
# File 'motion/core_ext/integer/time.rb', line 37

def years
  MotionSupport::Duration.new(self * 365.25.days, [[:years, self]])
end