File: C:/Ruby27-x64/share/ri/2.7.0/system/REXML/Element/add_text-i.ri
U:RDoc::AnyMethod[iI"
add_text:ETI"REXML::Element#add_text;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"EA helper method to add a Text child. Actual Text instances can ;TI"Abe added with regular Parent methods, such as add() and <<();To:RDoc::Markup::List:
@type: NOTE:@items[o:RDoc::Markup::ListItem:@label[I" text;T; [o;
; [I";if a String, a new Text instance is created and added ;TI";to the parent. If Text, the object is added directly.;To;;[I"Returns;T; [o;
; [I"this Element;To:RDoc::Markup::Verbatim; [I",e = Element.new('a') #-> <e/>
;TI"2e.add_text 'foo' #-> <e>foo</e>
;TI"7e.add_text Text.new(' bar') #-> <e>foo bar</e>
;T:@format0o;
; [I"RNote that at the end of this example, the branch has <b>3</b> nodes; the 'e' ;TI"-element and <b>2</b> Text node children.;T:
@fileI"lib/rexml/element.rb;T:0@omit_headings_from_table_of_contents_below000[ I"
( text );T@)FI"Element;TcRDoc::NormalClass00