File: C:/Ruby27-x64/lib/ruby/gems/2.7.0/doc/activeresource-6.0.0/ri/ActiveResource/Base/clone-i.ri
U:RDoc::AnyMethod[iI"
clone:ETI"ActiveResource::Base#clone;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"PReturns a \clone of the resource that hasn't been assigned an +id+ yet and ;TI"#is treated as a \new resource.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"ryan = Person.find(1)
;TI"not_ryan = ryan.clone
;TI"not_ryan.new? # => true
;T:@format0o;
; [ I"PAny active resource member attributes will NOT be cloned, though all other ;TI"Rattributes are. This is to prevent the conflict between any +prefix_options+ ;TI"Lthat refer to the original parent resource and the newly cloned parent ;TI""resource that does not exist.;T@o;; [
I"ryan = Person.find(1)
;TI"Aryan.address = StreetAddress.find(1, :person_id => ryan.id)
;TI".ryan.hash = {:not => "an ARes instance"}
;TI"
;TI"not_ryan = ryan.clone
;TI"(not_ryan.new? # => true
;TI"1not_ryan.address # => NoMethodError
;TI"?not_ryan.hash # => {:not => "an ARes instance"};T;
0:
@fileI" lib/active_resource/base.rb;T:0@omit_headings_from_table_of_contents_below000[ I"();T@%FI" Base;TcRDoc::NormalClass00