Vidyalelo
Ruby Programming · Q60

Advanced Topics in Ruby

Programming · Ruby Programming · question 60

Q60

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
Answer
C.
It converts the specified methods into private methods
D.
None of the above

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board