method

months

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

Returns a Duration instance matching the number of months provided.

2.months # => 2 months