Q. In Ruby, which method is used to check if an object responds to a certain method?

  • (A) method_defined?
  • (B) respond_to?
  • (C) has_method?
  • (D) check_method
πŸ’¬ Discuss
βœ… Correct Answer: (B) respond_to?

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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