Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby27
/
share
/
ri
/
system
/
REXML
/
Element
/
//opt/alt/ruby27/share/ri/system/REXML/Element/add_text-i.ri
U:RDoc::AnyMethod[iI" add_text:ETI"REXML::Element#add_text;TF:privateo: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