Class | Runt::Schedule |
In: |
lib/runt/schedule.rb
|
Parent: | Object |
Implementation of a pattern for recurring calendar events created by Martin Fowler.
Schedule event to occur using the given expression. NOTE: version 0.5.0 no longer uses an Array of ScheduleElements internally to hold data. This would only matter to clients if they they depended on the ability to call add multiple times for the same event. Use the update method instead.
For the given date range, returns an Array of PDate objects at which the supplied event is scheduled to occur.
Selects events using the user supplied block/Proc. The Proc must accept two parameters: an Event and a TemporalExpression. It will be called with each existing Event-expression pair at which point it can choose to include the Event in the final result by returning true or to filter it by returning false.
Call the supplied block/Proc with the currently configured TemporalExpression associated with the supplied Event.