Feature #14778 ยป dup_with_block.diff
object.c | ||
---|---|---|
init_copy(dup, obj);
|
||
rb_funcall(dup, id_init_dup, 1, obj);
|
||
if (rb_block_given_p()) {
|
||
rb_yield(dup);
|
||
}
|
||
return dup;
|
||
}
|
||