class Integer

def months

2.months # => 2 months

Returns a Duration instance matching the number of months provided.
def months
  ActiveSupport::Duration.months(self)
end