Sha256: 0ef4be1a7ccffc410cab27e7a96b22a709f84bd6968975cd00acd6efe21f5b8c
Contents?: true
Size: 350 Bytes
Versions: 124
Compression:
Stored size: 350 Bytes
Contents
# frozen_string_literal: true class ReeDate::QuartersAgo include Ree::FnDSL fn :quarters_ago do link :today link :advance end doc("Returns a new date the specified number of quarters ago.") contract(Nilor[Date], Integer => Date) def call(date = nil, quarter_count) advance(date || today, quarters: -quarter_count) end end
Version data entries
124 entries across 124 versions & 1 rubygems