Sha256: 488b70b23fe4acd340cd79dadaadfde1f3ec14bc34886f0a4a900763d81bff11
Contents?: true
Size: 337 Bytes
Versions: 126
Compression:
Stored size: 337 Bytes
Contents
# frozen_string_literal: true class ReeDatetime::IsWeekend include Ree::FnDSL fn :is_weekend do link :now link :is_weekend, from: :ree_date end doc("Returns true if the date/time falls on a Saturday or Sunday.") contract(Nilor[DateTime] => Bool) def call(date_time = nil) is_weekend(date_time || now) end end
Version data entries
126 entries across 126 versions & 1 rubygems