class Rufus::Scheduler
def find_jobs (tag)
Returns an array of jobs that have the given tag.
def find_jobs (tag) result = @cron_jobs.values.find_all do |job| job.has_tag?(tag) end result + @pending_jobs.find_all do |job| job.has_tag?(tag) end end
def find_jobs (tag) result = @cron_jobs.values.find_all do |job| job.has_tag?(tag) end result + @pending_jobs.find_all do |job| job.has_tag?(tag) end end