class method
Ruby::Box.current
Ruby::Box.current → box, nil or false
box.c
View on GitHub ↗
static VALUE
rb_box_s_current(VALUE recv)
{
const rb_box_t *box;
if (!rb_box_available())
return Qnil;
box = rb_vm_current_box(GET_EC());
VM_ASSERT(box && box->box_object);
return box->box_object;
}
Returns the current box. Returns nil if Ruby Box is not enabled.