method

months

v8.1.1 - Show latest stable - Class: Integer
months()
public

Returns a Duration instance matching the number of months provided.

2.months # => 2 months