From: James Deuchar Date: 2006-08-30T01:51:51+09:00 Subject: Re: Testing a string's value is a positive integer Farrel Lifson wrote: > On 29/08/06, Floyd Wright wrote: >> >>> >> >> > > Or you could just use that. Three cheers for the principle of least > suprise! Yep - would be great! However I'm dealing with a params key-value pair which RoR makes available a String object... irb(main):1:0> a = "1.1" => "1.1" irb(main):2:0> a.integer? NoMethodError: undefined method `integer?' for "1.1":String Maybe regexp ain't so wrong after-all... Thanks anyways! -- Posted via http://www.ruby-forum.com/.