module Repeatable::LastDateOfMonth
Public Instance Methods
last_date_of_month(date)
click to toggle source
# File lib/repeatable/last_date_of_month.rb, line 3 def last_date_of_month(date) ::Date.new(date.next_month.year, date.next_month.month, 1).prev_day end