method

yield

ruby latest stable - Class: Generator

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_8_7_330) is shown here.

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.