class Rufus::Scheduler
def find_schedulables (tag)
result.
Jobs that haven't a wrapped Schedulable won't be included in the
the wrapped Schedulable objects.
Finds the jobs with the given tag and then returns an array of
def find_schedulables (tag) #jobs = find_jobs(tag) #result = [] #jobs.each do |job| # result.push(job.schedulable) if job.respond_to?(:schedulable) #end #result find_jobs(tags).inject([]) do |result, job| result.push(job.schedulable) if job.respond_to?(:schedulable) result end end