From: mortee Date: 2007-10-15T11:36:11+09:00 Subject: Re: irb, to learn more... John Joyce wrote: > There must be a way to jump in and out, leaving it running or not. > For example, start irb. > Then, create two named irb sessions inside it. > You operate at the top level, monitor the two inside irb's... There's no black magic here. In the online available version of the Pickaxe book, you can find out about this: http://www.rubycentral.com/pickaxe/irb.html cb, irb_change_binding [ obj ] Creates and enters a new binding that has its own scope for local variables. If obj is given, it will be used as self in the new binding. irb [obj] Starts an irb subsession. If obj is given, it will be used as self. jobs, irb_jobs Lists irb subsessions. fg n, irb_fg n Switches into the specified irb subsession. n may be any of the following values: irb subsession number thread id irb object self (the obj that launched a particular subsession) kill n, irb_kill n Kills an irb subsession. n may be any of the values as described for irb_fg.