Sha256: 56d15935108840d0d70f4c0a45ddda66c399c8131dab053c7ef9701f6cb69aa0
Contents?: true
Size: 309 Bytes
Versions: 126
Compression:
Stored size: 309 Bytes
Contents
# frozen_string_literal: true class ReeDatetime::NextMonth include Ree::FnDSL fn :next_month do link :now link :advance end doc("Short-hand for <tt>months_since(1)</tt>.") contract(Nilor[DateTime] => DateTime) def call(date_time = nil) advance(date_time || now, months: 1) end end
Version data entries
126 entries across 126 versions & 1 rubygems