Sha256: bc7ca178c56102464b81bdfe441a5ca7aa48b55262ab39fc992f12b0a968600b
Contents?: true
Size: 364 Bytes
Versions: 124
Compression:
Stored size: 364 Bytes
Contents
# frozen_string_literal: true class ReeDate::EndOfYear include Ree::FnDSL fn :end_of_year do link :today link :change link :end_of_month end doc("Returns a new date representing the end of the year.") contract(Nilor[Date] => Date) def call(date = nil) date = date || today end_of_month(change(date, month: 12, day: 1)) end end
Version data entries
124 entries across 124 versions & 1 rubygems