Answers for "how to check if integer ruby"

1

ruby is int

1.is_a? Integer
=> true
"[email protected]".is_a? Integer
=> false
nil.is_a? Integer
=> false
Posted by: Guest on June-07-2020

Code answers related to "how to check if integer ruby"

Browse Popular Code Answers by Language