each() public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
static VALUE
generator_each(VALUE obj)
{
    struct generator *ptr = generator_ptr(obj);
    VALUE yielder;

    yielder = yielder_new();

    rb_proc_call(ptr->proc, rb_ary_new3(1, yielder));

    return obj;
}
Register or log in to add new notes.