Module: SimplesIdeias::Recurrence::Handler::FallBack
- Defined in:
- lib/recurrence/handler/fall_back.rb
Overview
Class Method Summary collapse
Class Method Details
.call(day, month, year) ⇒ Object
17 18 19 |
# File 'lib/recurrence/handler/fall_back.rb', line 17 def self.call(day, month, year) Date.new(year, month, [day, Time.days_in_month(month, year)].min) end |