class Rufus::Scheduler
def find_jobs (tag=nil)
Returns an array of jobs that have the given tag.
def find_jobs (tag=nil) jobs = @cron_jobs.values + @non_cron_jobs.values jobs = jobs.select { |job| job.has_tag?(tag) } if tag jobs end
def find_jobs (tag=nil) jobs = @cron_jobs.values + @non_cron_jobs.values jobs = jobs.select { |job| job.has_tag?(tag) } if tag jobs end