Examveda

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


This Question Belongs to Ruby Programming >> Advanced Topics In Ruby

Join The Discussion

Related Questions on Advanced Topics in Ruby