Sha256: bf9ff3f1de17fa8bfd0310f3bd853d8c4a417bcf53765380268d84da51140db3
Contents?: true
Size: 346 Bytes
Versions: 126
Compression:
Stored size: 346 Bytes
Contents
# frozen_string_literal: true class ReeDate::YearsSince include Ree::FnDSL fn :years_since do link :today link :advance end doc("Returns a new date the specified number of years in the future.") contract(Nilor[Date], Integer => Date) def call(date = nil, year_count) advance(date || today, years: +year_count) end end
Version data entries
126 entries across 126 versions & 1 rubygems