From: John Joyce Date: 2007-08-15T09:42:22+09:00 Subject: Re: IPSocket::getaddress problem On Aug 14, 2007, at 5:52 PM, Haze Noc wrote: > Hey guys, I want to test if IPSocket::getaddress('address') is valid > before printing it or anything.. > > If the user enters an invalid address then the program dies, i tried > rescuing the error but i didn't have much luck, any ideas? > > Thanks in advance > -- > Posted via http://www.ruby-forum.com/. > Try creating a test first. Using testing facilities in Ruby is exactly for this kind of thing!