Q. What is the method used to check if a variable is of a specific class in Ruby?

  • (A) .is_a?
  • (B) .type_of
  • (C) .typeof
  • (D) .class_of
πŸ’¬ Discuss
βœ… Correct Answer: (A) .is_a?

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
177
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
81%
Success Rate