Check out example codes for "ruby is int". It will help you in understanding the concepts better.

Code Example 1

1.is_a? Integer
=> true
"[email protected]".is_a? Integer
=> false
nil.is_a? Integer
=> false

Learn ReactJs, React Native from akashmittal.com