Sha256: fac8d3f4fee5517838a015583f4aecaa9af4de89172e81d83447c78d8f46e690

Contents?: true

Size: 252 Bytes

Versions: 1

Compression:

Stored size: 252 Bytes

Contents

# typed: strict
module Repeatable
  module LastDateOfMonth
    extend T::Sig

    sig { params(date: ::Date).returns(::Date) }
    def last_date_of_month(date)
      ::Date.new(date.next_month.year, date.next_month.month, 1).prev_day
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
repeatable-1.1.0 lib/repeatable/last_date_of_month.rb