What is the function of yield black in Ruby?
Answers
Answered by
3
The yield keyword in corporation with a block allows to provide a set of additional instructions.
When yield is called in side a method then method requires a block with in it.
Hope it helps...
Similar questions