Method: Runt::Schedule#dates
- Defined in:
- lib/runt/schedule.rb
#dates(event, date_range) ⇒ Object
For the given date range, returns an Array of PDate objects at which the supplied event is scheduled to occur.
26 27 28 29 30 31 32 |
# File 'lib/runt/schedule.rb', line 26 def dates(event, date_range) result=[] date_range.each do |date| result.push date if include?(event,date) end result end |