Method: Date#months_upto
- Defined in:
- lib/quality_extensions/date/month_ranges.rb
#months_upto(max, &block) ⇒ Object
Step forward one month at a time until we reach max (inclusive), yielding each date as we go
29 30 31 |
# File 'lib/quality_extensions/date/month_ranges.rb', line 29 def months_upto(max, &block) # { |date| ...} month_step(max, +1, &block) end |