Flowdock
search(key) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/irb/ext/multi-irb.rb, line 71
    def search(key)
      job = case key
      when Integer
        @jobs[key]
      when Irb
        @jobs.find{|k, v| v.equal?(key)}
      when Thread
        @jobs.assoc(key)
      else
        @jobs.find{|k, v| v.context.main.equal?(key)}
      end
      IRB.fail NoSuchJob, key if job.nil?
      job
    end
Register or log in to add new notes.