--- !ruby/object:RI::MethodDescription
aliases: []
block_params:
comment:
- !ruby/struct:SM::Flow::P
body: Produces a shallow copy of obj---the instance variables of obj are copied, but not the objects they reference. dup copies the tainted state of obj. See also the discussion under Object#clone. 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.
- !ruby/struct:SM::Flow::P
body: "This method may have class-specific behavior. If so, that behavior will be documented under the #initialize_copy method of the class."
full_name: Object#dup
is_singleton: false
name: dup
params: |
obj.dup -> an_object
visibility: public