From: Tobias Reif Date: 2002-01-13T02:21:09+09:00 Subject: Re: I/O gets and integers Jack Dempsey wrote: > Unless you changed the behavior of gets itself, I believe it'll always > return a string. You could then write a small function to check the type and > use .to_i yourself though #!Nobu Nakada class String def to_number Integer(self) rescue Float(self) rescue self end end Tobi -- -- http://www.pinkjuice.com/