Method: Numeric#fortnights
- Defined in:
- activesupport/lib/active_support/core_ext/numeric/time.rb
#fortnights ⇒ Object Also known as: fortnight
Returns a Duration instance matching the number of fortnights provided.
2.fortnights # => 4 weeks
53 54 55 |
# File 'activesupport/lib/active_support/core_ext/numeric/time.rb', line 53 def fortnights ActiveSupport::Duration.weeks(self * 2) end |