Sha256: ab9a0b51fb07eecca330aaa9e68872a77645254f4584a70e4e672306d800fa8c
Contents?: true
Size: 438 Bytes
Versions: 126
Compression:
Stored size: 438 Bytes
Contents
# frozen_string_literal: true class ReeDatetime::AllMinute include Ree::FnDSL fn :all_minute do link :now link :beginning_of_minute link :end_of_minute end doc("Returns a Range representing the whole minute of the current date/time.") contract(Nilor[DateTime] => RangeOf[DateTime]) def call(date_time = nil) date_time = date_time || now beginning_of_minute(date_time)..end_of_minute(date_time) end end
Version data entries
126 entries across 126 versions & 1 rubygems