Examveda
Examveda

In Ruby, what does the `yield` keyword do in a method?

A. Exits the method

B. Calls the block passed to the method

C. Raises an exception

D. None of the above

Answer: Option B


This Question Belongs to Ruby Programming >> Methods In Ruby

Join The Discussion

Related Questions on Methods in Ruby