This method is deprecated or moved on the latest stable version. The last existing version (v1_8_7_330) is shown here.
yield(value)
Yields an element to the generator.
# File lib/generator.rb, line 92 def yield(value) if @cont_yield = callcc { |c| c } @queue << value @cont_next.call(nil) end self end
Kernel#block_given? can be used to check if yield would be able to call a block.