rb_class_new_instance

Function rb_class_new_instance 

Source
pub unsafe extern "C" fn rb_class_new_instance(
    argc: c_int,
    argv: *const VALUE,
    klass: VALUE,
) -> VALUE
Expand description

Allocates, then initialises an instance of the given class. It first calls the passed class’ allocator to obtain an uninitialised object, then calls its initialiser with the remaining arguments.

§@param[in] argc Number of objects of argv. @param[in] argv Arguments passed to #initialize. @param[in] klass An instance of ::rb_cClass. @exception rb_eTypeError klass’s allocator is undefined. @exception rb_eException Any exceptions can happen inside. @return An allocated new instance of klass.

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