pub unsafe extern "C" fn rb_obj_instance_eval(
argc: c_int,
argv: *const VALUE,
recv: VALUE,
) -> VALUEExpand description
Evaluates a string containing Ruby source code, or the given block, within
the context of the receiver. In order to set the context, the variable
self is set to recv while the code is executing, giving the code access
to recv’s instance variables and private methods.
When given a block, recv is also passed in as the block’s only argument.
When given a string, the optional second and third parameters supply a filename and starting line number that are used when reporting compilation errors.
§@param[in] argc Number of objects in argv
@param[in] argv C array of 0 up to 3 elements.
@param[in] recv The object in question.
@return What was evaluated.
Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3