method

yield

v1_8_7_330 - Show latest stable - Class: Generator
yield(value)
public

Yields an element to the generator.

1Note

Block_given?

iiska ยท Aug 5, 2010

Kernel#block_given? can be used to check if yield would be able to call a block.