Sha256: 6b79da5a21b9b7558dacd5201b2c0b7ec4637c642495b291567834570216e869
Contents?: true
Size: 300 Bytes
Versions: 124
Compression:
Stored size: 300 Bytes
Contents
# frozen_string_literal: true class ReeDatetime::PrevDay include Ree::FnDSL fn :prev_day do link :now link :advance end doc("Short-hand for <tt>days_ago(1)</tt>.") contract(Nilor[DateTime] => DateTime) def call(date_time = nil) advance(date_time || now, days: -1) end end
Version data entries
124 entries across 124 versions & 1 rubygems