Vidyalelo
Ruby Programming · Q13

Modules and Mixins in Ruby

Programming · Ruby Programming · question 13

Q13

What is the purpose of the extend keyword in Ruby?

A.
Initializes a new instance
B.
Adds methods from a module as class methods
Answer
C.
Calls a superclass method
D.
None of the above

Answer: Option B

Solution

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