pub unsafe extern "C" fn rb_undef_alloc_func(klass: VALUE)Expand description
Deletes the allocator function of a class. It is sometimes desirable to restrict creation of an instance of a class. For example it rarely makes sense for a DB adaptor class to allow programmers creating DB row objects without querying the DB itself. You can kill sporadic creation of such objects then, by nullifying the allocator function using this API. Your object shall be allocated using #RB_NEWOBJ_OF() directly.
ยง@param[out] klass The class to modify.
@pre klass must be an instance of Class.
Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3