rb_obj_hide

Function rb_obj_hide 

Source
pub unsafe extern "C" fn rb_obj_hide(obj: VALUE) -> VALUE
Expand description

Make the object invisible from Ruby code.

It is useful to let Ruby’s GC manage your internal data structure – The object keeps being managed by GC, but ObjectSpace.each_object never yields the object.

Note that the object also lose a way to call a method on it.

§@param[out] obj A Ruby object. @return The passed object. @post The object is destructively modified to be invisible. @see rb_obj_reveal

Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3