pub unsafe extern "C" fn rb_obj_clone(obj: VALUE) -> VALUEExpand description
Produces a shallow copy of the given object. Its list of instance variables are copied, but not the objects they reference. It also copies the frozen value state.
@param[in] obj Arbitrary ruby object.
@exception rb_eException #initialize_copy can raise anything.
@return A “clone” of obj.
@internal
§Unlike ruby-level Object#clone, there is no way to control the frozen-ness
of the return value.
Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3