I googled that there is an is_a?
function to check whether an object is an integer or not.
But I tried in rails console, and it doesn't work.
I ran the code like the following:
"1".is_a?
1.is_a?
Did I miss something?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…