class Rufus::Scheduler::RepeatJob
def next_times(count)
(not from one trigger to the next, as for "cron" and "every").
"interval" works from the end of a job to its next trigger
Warning, for IntervalJob, the @mean_work_time is used since
(EtOrbi::EoTime instances) for this job.
Starting from now, returns the {count} next occurences
def next_times(count) (count - 1).times.inject([ next_time ]) { |a| a << next_time_from(a.last) a } end