Sha256: d7f1fff9c76986c395b47efcc0ad912039b6061909528df51a28c00ea09edfa3
Contents?: true
Size: 290 Bytes
Versions: 126
Compression:
Stored size: 290 Bytes
Contents
# frozen_string_literal: true class ReeDate::PrevMonth include Ree::FnDSL fn :prev_month do link :today link :advance end doc("Short-hand for <tt>months_ago(1)</tt>.") contract(Nilor[Date] => Date) def call(date = nil) advance(date || today, months: -1) end end
Version data entries
126 entries across 126 versions & 1 rubygems