Class: Enumerator::Yielder
Relationships & Source Files | |
Inherits: | Object |
Defined in: | enumerator.c |
Overview
Yielder
Class Method Summary
- .new constructor Internal use only
Instance Method Summary
- #<<(args) Internal use only
- #yield(args) Internal use only
Constructor Details
.new
This method is for internal use only.
[ GitHub ]
# File 'enumerator.c', line 1213
static VALUE yielder_initialize(VALUE obj) { rb_need_block(); return yielder_init(obj, rb_block_proc()); }
Instance Method Details
#<<(args)
This method is for internal use only.
[ GitHub ]
# File 'enumerator.c', line 1231
static VALUE yielder_yield_push(VALUE obj, VALUE args) { yielder_yield(obj, args); return obj; }
#yield(args)
This method is for internal use only.
[ GitHub ]
# File 'enumerator.c', line 1222
static VALUE yielder_yield(VALUE obj, VALUE args) { struct yielder *ptr = yielder_ptr(obj); return rb_proc_call(ptr->proc, args); }