Farrel Lifson wrote:
> On 29/08/06, Floyd Wright <tfwright / thoughtbot.com> 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/.