vendor/bundle/ruby/1.8/gems/rufus-scheduler-2.0.16/lib/rufus/sc/scheduler.rb
# Mostly used to find a job given its id. If the argument is a job, will
# simply return it.
#
# If the argument is an id, and no job with that id is found, it will
# raise an ArgumentError.
#
Mostly used to find a job given its id. If the argument is a job, will
simply return it.

If the argument is an id, and no job with that id is found, it will
raise an ArgumentError.
Mostly used to find a job given its id . If the argument is a job will simply return it . If the argument is an id and no job with that id is found it will raise an ArgumentError .
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
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
Mostly used to find a job given its id.
Mostly used to find a job given its id .
job_or_id