rb_obj_is_instance_of

Function rb_obj_is_instance_of 

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

Queries if the given object is a direct instance of the given class.

ยง@param[in] obj Arbitrary ruby object. @param[in] klass An instance of ::rb_cModule. @exception rb_eTypeError klass is neither module nor class. @retval RUBY_Qtrue obj is an instance of klass. @retval RUBY_Qfalse Otherwise.

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