πŸ“Š Ruby
Q. In Ruby, what is the purpose of the Module#prepend method?
  • (A) It includes a module in the inheritance chain after the class itself
  • (B) It extends a module to add new functionality
  • (C) It creates a copy of the module and appends it to the end of the inheritance chain
  • (D) It includes a module in the inheritance chain before the class itself
πŸ’¬ Discuss
βœ… Correct Answer: (D) It includes a module in the inheritance chain before the class itself

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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