Project

General

Profile

Feature #14778 ยป dup_with_block.diff

hkdnet (Ko Sato), 05/20/2018 01:14 AM

View differences:

object.c
536 536
    init_copy(dup, obj);
537 537
    rb_funcall(dup, id_init_dup, 1, obj);
538 538

  
539
    if (rb_block_given_p()) {
540
        rb_yield(dup);
541
    }
539 542
    return dup;
540 543
}
541 544