Method: InactiveSupport::CoreExtensions::Numeric::Time#weeks

Defined in:
lib/inactive_support/core_ext/numeric/time.rb

#weeksObject Also known as: week



53
54
55
# File 'lib/inactive_support/core_ext/numeric/time.rb', line 53

def weeks
  InactiveSupport::Duration.new(self * 7.days, [[:days, self * 7]])
end