HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //usr/share/ri/3.0.0/system/Kernel/clone-i.ri
U:RDoc::AnyMethod[iI"
clone:ETI"Kernel#clone;TF:publico:RDoc::Markup::Document:@parts[	o:RDoc::Markup::Paragraph;	[
I"GProduces a shallow copy of <i>obj</i>---the instance variables of ;TI"@<i>obj</i> are copied, but not the objects they reference. ;TI"D#clone copies the frozen value state of <i>obj</i>, unless the ;TI"E+:freeze+ keyword argument is given with a false or true value. ;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      #=> #<Klass:0x401b3a38>
;TI"%s1.str = "Hello"    #=> "Hello"
;TI">s2 = s1.clone       #=> #<Klass:0x401b3998 @str="Hello">
;TI"!s2.str[1,4] = "i"   #=> "i"
;TI"?s1.inspect          #=> "#<Klass:0x401b3a38 @str=\"Hi\">"
;TI"?s2.inspect          #=> "#<Klass:0x401b3998 @str=\"Hi\">"
;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"kernel.rb;T:0@omit_headings_from_table_of_contents_below0I")obj.clone(freeze: nil) -> an_object
;T0[I"(freeze: nil);T@#FI"Kernel;TcRDoc::NormalModule00