Method: Fiber.current

Defined in:
cont.c

.currentObject

Returns the current fiber. If you are not running in the context of a fiber this method will return the root fiber.



3246
3247
3248
3249
3250
# File 'cont.c', line 3246

static VALUE
rb_fiber_s_current(VALUE klass)
{
    return rb_fiber_current();
}