Class: Integer
- Inherits:
-
Object
- Object
- Integer
- Defined in:
- lib/finance/interval.rb
Instance Method Summary collapse
-
#months ⇒ Integer
convert an integer value representing months into months.
-
#years ⇒ Integer
convert an integer value representing years into months.
Instance Method Details
#months ⇒ Integer
convert an integer value representing months into months
7 8 9 |
# File 'lib/finance/interval.rb', line 7 def months self end |
#years ⇒ Integer
convert an integer value representing years into months
16 17 18 |
# File 'lib/finance/interval.rb', line 16 def years self * 12 end |