From: Sebastian Hungerecker Date: 2007-11-02T03:47:37+09:00 Subject: Re: Can we define data types explicitly? Shuaib Zahda wrote: > After trying several ways of checking the data types of my input. I > found that the best method to be used is is_a? or kind_of? because it > returns true or false value. In my case, this is best. User input will always be a string until you convert it. user_input = gets user_input.is_a? Integer Will never be true - even if the user enters a number. -- Jabber: sepp2k@jabber.org ICQ: 205544826