πŸ“Š Ruby
Q. In Ruby, what is the purpose of the module_function keyword?
  • (A) It ensures that the module cannot be included in other modules or classes
  • (B) It makes the specified methods accessible both as instance methods and module methods
  • (C) It converts the specified methods into private methods
  • (D) It ensures that the module cannot be included in other modules or classes
πŸ’¬ Discuss
βœ… Correct Answer: (B) It makes the specified methods accessible both as instance methods and module methods

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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