JezK
Edit File: %5b%5d%3d-i.ri
U:RDoc::AnyMethod[iI"[]=:ETI"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 '<a/>' ;TI"Adoc.root.elements[10] = Element.new('b') #-> <a><b/></a> ;TI":doc.root.elements[1] #-> <b/> ;TI"Adoc.root.elements[1] = Element.new('c') #-> <a><c/></a> ;TI"@doc.root.elements['c'] = Element.new('d') #-> <a><d/></a>;T:@format0: @fileI"lib/rexml/element.rb;T:0@omit_headings_from_table_of_contents_below000[ I"( index, element );T@/FI" Elements;TcRDoc::NormalClass00