class Rufus::Scheduler::SchedulerCore
def find(job_or_id)
raise an ArgumentError.
If the argument is an id, and no job with that id is found, it will
simply return it.
Mostly used to find a job given its id. If the argument is a job, will
def find(job_or_id) return job_or_id if job_or_id.respond_to?(:job_id) job = all_jobs[job_or_id] raise ArgumentError.new( "couldn't find job #{job_or_id.inspect}" ) unless job job end