Examveda

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

Answer: Option D


This Question Belongs to Ruby Programming >> Methods In Ruby

Join The Discussion

Related Questions on Methods in Ruby