method
switch
v1_8_7_72 -
Show latest stable
- Class:
IRB::JobManager
switch(key)public
No documentation available.
# File lib/irb/ext/multi-irb.rb, line 54
def switch(key)
th, irb = search(key)
IRB.fail IrbAlreadyDead unless th.alive?
IRB.fail IrbSwitchedToCurrentThread if th == Thread.current
@current_job = irb
th.run
Thread.stop
@current_job = irb(Thread.current)
end