From: Brian Candler Date: 2012-10-29T04:00:55+09:00 Subject: Re: How to restore input from within a loop or similar? Marc Heiler wrote in post #1081649: > Right now, if I use "exit" within the IrcClient class, I stop the whole > program, but I only want to stop the Irc client exit stops the whole program return returns from a method (so the easiest solution is just to move that logic into a method, and call it from the appropriate place Otherwise there's throw and catch when 'irc' catch(:done) do ... throw :done # to jump out of the catch block ... end -- Posted via http://www.ruby-forum.com/.