Class: Integer
- Inherits:
-
Object
- Object
- Integer
- Defined in:
- lib/active_date_range/core_ext/integer.rb
Instance Method Summary collapse
-
#quarters ⇒ Object
(also: #quarter)
Returns Duration instance matching the number of quarters provided.
Instance Method Details
#quarters ⇒ Object Also known as: quarter
Returns Duration instance matching the number of quarters provided
2.quarters # => 6 months
7 8 9 |
# File 'lib/active_date_range/core_ext/integer.rb', line 7 def quarters self * 3.months end |