Sha256: 4ec507d2c31de7259ee5f84ec2f88a88ed9211257cc9d7625620cf166c527286
Contents?: true
Size: 353 Bytes
Versions: 126
Compression:
Stored size: 353 Bytes
Contents
# frozen_string_literal: true class ReeDate::MonthsSince include Ree::FnDSL fn :months_since do link :today link :advance end doc("Returns a new date the specified number of months in the future.") contract(Nilor[Date], Integer => Date) def call(date = nil , month_count) advance(date || today, months: +month_count) end end
Version data entries
126 entries across 126 versions & 1 rubygems