From: Paul Duncan Date: 2002-11-06T23:37:34+09:00 Subject: Re: How to get ruby interactive when some condition or error ocurred? --FCF9ydJxlAJsfRTu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Radek Hnilica (Radek@Hnilica.CZ) wrote: > Hello, >=20 > I'm thinking of, and looking for way to start interactive session from > running program, when some limit condition, or an error ocurred. I > still can't find a way how to do it. >=20 > Something like > ... > # some code > start_interactive_session if flag > ... require 'irb' # some code # ... IRB::start $STDIN if flag (hint: if you've got irb installed on a local Unix box, do the following: cat `which irb`) > --=20 > Radek Hnilica > when I'm mobile, use > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > No matter how far down the wrong road you've gone, turn back. > Turkish proverb --=20 Paul Duncan pabs in #gah (OPN IRC) http://www.pablotron.org/ OpenPGP Key ID: 0x82C29562 --FCF9ydJxlAJsfRTu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (GNU/Linux) iD8DBQE9yR33zdlT34LClWIRAgEuAJ0SlGkPwn5h8qMzF5ALR7BAa7ocQACfWcGf l+y/ySeeY2SiSXq00gp++Pg= =6qDh -----END PGP SIGNATURE----- --FCF9ydJxlAJsfRTu--