Answers for "check to see if ruby variable is a string or an int"

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 "check to see if ruby variable is a string or an int"

Browse Popular Code Answers by Language