Q26
What is the purpose of the yield keyword in Ruby?
A.
To exit a method
B.
To call another method
C.
To define a block
D.
To pass control and arguments to a block
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board