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. None of the above
Answer: Option B

Join The Discussion