U:RDoc::AnyMethod[iI"[]=:EFI"REXML::Elements#[]=;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"FSets an element, replacing any previous matching element. If no ;TI"5existing element is found ,the element is added.;To:RDoc::Markup::List:
@type: NOTE:@items[o:RDoc::Markup::ListItem:@label[I"
index;T; [o;
; [I";Used to find a matching element to replace. See []().;To;;[I"element;T; [o;
; [I"6The element to replace the existing element with ;TI"the previous element;To;;[I"Returns;T; [o;
; [I"*nil if no previous element was found.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [
I"doc = Document.new ''
;TI"Adoc.root.elements[10] = Element.new('b') #->
;TI":doc.root.elements[1] #->
;TI"Adoc.root.elements[1] = Element.new('c') #->
;TI"@doc.root.elements['c'] = Element.new('d') #-> ;T:@format0:
@fileI"lib/rexml/element.rb;T:0@omit_headings_from_table_of_contents_below000[ I"( index, element );T@/FI"
Elements;TcRDoc::NormalClass00