Flowdock
method

yield

Importance_1
Ruby latest stable (v1_9_3_392) - 1 note - 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.

These similar methods exist in v1_9_3_392:

yield(value) public

Yields an element to the generator.

Show source
Register or log in to add new notes.
August 5, 2010
0 thanks

Block_given?

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