Sha256: 8b849b394eb60ccfd5716c3dec3212b6c316cbc2812ffe31f345616e418b4f21
Contents?: true
Size: 374 Bytes
Versions: 125
Compression:
Stored size: 374 Bytes
Contents
# frozen_string_literal: true class ReeDatetime::MonthsSince include Ree::FnDSL fn :months_since do link :now link :advance end doc("Returns a new date/time the specified number of months in the future.") contract(Nilor[DateTime], Integer => DateTime) def call(date_time = nil, month_count) advance(date_time || now, months: month_count) end end
Version data entries
125 entries across 125 versions & 1 rubygems