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 72
    def search(key)
      case key
      when Integer
        @jobs[key]
      when Irb
        @jobs.find{|k, v| v.equal?(key)}
      when Thread
        @jobs.assoc(key)
      else
        assoc = @jobs.find{|k, v| v.context.main.equal?(key)}
        IRB.fail NoSuchJob, key if assoc.nil?
        assoc
      end
    end
Register or log in to add new notes.