Class: Integer
- Inherits:
-
Object
- Object
- Integer
- Defined in:
- lib/timeloop/core_ext/integer/time.rb
Instance Method Summary collapse
- #months ⇒ Object (also: #month)
- #years ⇒ Object (also: #year)
Instance Method Details
#months ⇒ Object Also known as: month
3 4 5 |
# File 'lib/timeloop/core_ext/integer/time.rb', line 3 def months 30 * self.days end |
#years ⇒ Object Also known as: year
8 9 10 |
# File 'lib/timeloop/core_ext/integer/time.rb', line 8 def years 365.25 * self.days end |