Examveda

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: Option D


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

Join The Discussion

Related Questions on Advanced Topics in Ruby