Q. What is the purpose of the const_missing method in Ruby?

  • (A) It is called when a constant is accessed that is already defined
  • (B) It is called when a constant is accessed that is not defined
  • (C) It is called when a constant is defined that is not accessed
  • (D) It is called when a constant is accessed that is already defined
πŸ’¬ Discuss
βœ… Correct Answer: (B) It is called when a constant is accessed that is not defined

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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