⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.116
Server IP:
78.40.11.138
Server:
Linux tango.o2switch.net 4.18.0-553.30.1.lve.el8.x86_64 #1 SMP Tue Dec 3 01:21:19 UTC 2024 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
opt
/
alt
/
ruby19
/
share
/
ri
/
1.9.1
/
system
/
Object
/
View File Name :
clone-i.ri
U:RDoc::AnyMethod[iI" clone:ETI"Object#clone;FF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [ I"FProduces a shallow copy of <i>obj</i>---the instance variables of;TI"F<i>obj</i> are copied, but not the objects they reference. Copies;TI"Hthe frozen and tainted state of <i>obj</i>. See also the discussion;TI"#under <code>Object#dup</code>.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"class Klass ;FI" attr_accessor :str ;FI" end ;FI"1s1 = Klass.new #=> #<Klass:0x401b3a38> ;FI"%s1.str = "Hello" #=> "Hello" ;FI">s2 = s1.clone #=> #<Klass:0x401b3998 @str="Hello"> ;FI"!s2.str[1,4] = "i" #=> "i" ;FI"?s1.inspect #=> "#<Klass:0x401b3a38 @str=\"Hi\">" ;FI"?s2.inspect #=> "#<Klass:0x401b3998 @str=\"Hi\">" ;Fo; ; [I"?This method may have class-specific behavior. If so, that;TI"Gbehavior will be documented under the #+initialize_copy+ method of;TI"the class.;T: @file0I"obj.clone -> an_object ;T0[ I"();FI" object.c;T