method
search
search(key)
public
Returns the associated job for the given key.
If given an Integer, it will return the key index for the jobs Array.
When an instance of Irb is given, it will return the irb session associated with key.
If given an instance of Thread, it will return the associated thread key using Object#=== on the jobs Array.
Otherwise returns the irb session with the same top-level binding as the given key.
Raises a NoSuchJob exception if no job can be found with the given key.