Sha256: 31dfa6e29bcc7565607948f9ac28b4647e11551a5d4f4b6df9304ea9f380012d
Contents?: true
Size: 386 Bytes
Versions: 126
Compression:
Stored size: 386 Bytes
Contents
# frozen_string_literal: true class ReeDate::AllYear include Ree::FnDSL fn :all_year do link :today link :beginning_of_year link :end_of_year end doc("Returns a Range representing the whole year of the current date.") contract(Nilor[Date] => RangeOf[Date]) def call(date = nil) date = date || today beginning_of_year(date)..end_of_year(date) end end
Version data entries
126 entries across 126 versions & 1 rubygems