我需要一个函数,is_an_integer,其中
is_an_integer
"12".is_an_integer?
"blah".is_an_integer?
我如何在Ruby中做到这一点?我会写一个正则表达式,但我假设有一个我不知道的帮助器。
https://stackoverflow.com/questions/1235863
相似问题