w wg wrote:
> How to check if a string is a integer ?
> 
> After seached in google, I can't find any information. All ISINTEGER
> function is about Javascript.
> 
> 
> Thank you.

You can use Integer(), it raises if the String passed is not an integer.
In case Integer() confuses you: that's Kernel#Integer(), a method, not 
the class Integer.
Also you can use a regex, e.g. str =~ /\A[+-]?\d+\z/

Regards
Stefan

-- 
Posted via http://www.ruby-forum.com/.