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