Ruby - Variables and Data Types
Which of the following is the correct syntax to check if variable
x is an instance of the Integer class using .is_a??x is an instance of the Integer class using .is_a??.is_a?.is_a? requires a class argument inside parentheses, like .is_a?(ClassName)..is_a? [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions