Question : ruby is int
Answered by : ram
1.is_a? Integer
=> true
"[email protected]".is_a? Integer
=> false
nil.is_a? Integer
=> false
Source : https://stackoverflow.com/questions/4589968/checking-if-a-variable-is-an-integer | Last Update : Sun, 14 Jun 20