From: David Mullet Date: 2007-06-04T23:50:20+09:00 Subject: Re: How to check if a string is a integer ? Farrel Lifson wrote: > On 04/06/07, David Mullet wrote: >> w wg wrote: >> 123.is_a? Integer >> => true >> 'David'.is_a? Integer >> => false > > That won't work > > irb(main):001:0> "123".is_a? Integer > => false > > Farrel Of course not. Duh! My apologies. Perhaps I shouldn't post before my first cup of tea. David -- Posted via http://www.ruby-forum.com/.