Ruby Is Int

[Solved] Ruby Is Int | Ruby - Code Explorer | yomemimo.com
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

Answers related to ruby is int

Code Explorer Popular Question For Ruby