Q. What is the purpose of the extend keyword in Ruby?

  • (A) Initializes a new instance
  • (B) Adds methods from a module as class methods
  • (C) Calls a superclass method
  • (D) Initializes a new instance
πŸ’¬ Discuss
βœ… Correct Answer: (B) Adds methods from a module as class methods

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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