Actions
Misc #9128
closedClarify documentation on difference between Object#clone and Object#dup
Status:
Closed
Assignee:
Description
Object#clone and Object#dup documentation does not show that modules mixed in via Module#extend are preserved by #clone, but not by #dup
Files
Updated by drbrain (Eric Hodel) about 11 years ago
- Assignee changed from drbrain (Eric Hodel) to zzak (zzak _)
Updated by zzak (zzak _) about 11 years ago
- Status changed from Open to Assigned
Updated by zzak (zzak _) about 11 years ago
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r43747.
stephen, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- object.c: [DOC] Clarify Object#dup vs #clone [Bug #9128]
Moving existing doc for this comparison to separate section of #dup
Adding examples to document behavior of #dup with Module#extend.
Based on a patch by stevegoobermanhill
Actions
Like0
Like0Like0Like0