U:RDoc::AnyMethod[iI"
add_text:EFI"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') #->
;TI"2e.add_text 'foo' #-> foo
;TI"7e.add_text Text.new(' bar') #-> foo bar
;T:@format0o;
; [I"RNote that at the end of this example, the branch has 3 nodes; the 'e' ;TI"-element and 2 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