What’s the difference between Ruby’s dup and clone methods?
The Ruby docs for dup say: In general, clone and dup may have different semantics in descendent classes. While clone is used to duplicate an object, including its internal state, dup typically uses the class of the descendent object to create the new instance. But when I do some test I found they are actually … Read more