Vidyalelo
Ruby Programming · Q66

Advanced Topics in Ruby

Programming · Ruby Programming · question 66

Q66

In Ruby, what is the purpose of the Module#prepend method?

A.
It includes a module in the inheritance chain after the class itself
B.
It extends a module to add new functionality
C.
It creates a copy of the module and appends it to the end of the inheritance chain
D.
It includes a module in the inheritance chain before the class itself
Answer

Answer: Option D

Solution

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