U:RDoc::AnyMethod[iI" clone:ETI"Object#clone;TF: publico:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [ I"GProduces a shallow copy of obj---the instance variables of ;TI"@obj are copied, but not the objects they reference. ;TI"Kclone copies the frozen (unless :freeze keyword argument ;TI"Cis given with a false value) and tainted state of obj. ;TI";See also the discussion under Object#dup.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"class Klass ;TI" attr_accessor :str ;TI" end ;TI"1s1 = Klass.new #=> # ;TI"%s1.str = "Hello" #=> "Hello" ;TI">s2 = s1.clone #=> # ;TI"!s2.str[1,4] = "i" #=> "i" ;TI"?s1.inspect #=> "#" ;TI"?s2.inspect #=> "#" ;T: @format0o; ; [I"@This method may have class-specific behavior. If so, that ;TI"Hbehavior will be documented under the #+initialize_copy+ method of ;TI"the class.;T: @fileI" object.c;T:0@omit_headings_from_table_of_contents_below0I"*obj.clone(freeze: true) -> an_object ;T0[I"(p1 = {});T@#FI" Object;TcRDoc::NormalClass00