Sha256: 911ee3faab462e7a8ad586af4f8f4e5fabde911c076ee663c87c60a57cd767d2
Contents?: true
Size: 373 Bytes
Versions: 125
Compression:
Stored size: 373 Bytes
Contents
# frozen_string_literal: true class ReeDatetime::WeeksSince include Ree::FnDSL fn :weeks_since do link :now link :advance end doc("Returns a new date_time/time the specified number of weeks in the future.") contract(Nilor[DateTime], Integer => DateTime) def call(date_time = nil, week_count) advance(date_time || now, weeks: week_count) end end
Version data entries
125 entries across 125 versions & 1 rubygems