I googled that there is an is_a? function to check whether an object is an integer or not.
is_a?
But I tried in rails console, and it doesn\'t work.
I
I wanted something similar, but none of these did it for me, but this one does - use "class":
a = 11 a.class => Fixnum