File: C:/Ruby27-x64/share/ri/2.7.0/system/String/insert-i.ri
U:RDoc::AnyMethod[iI"insert:ETI"String#insert;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [
I"@Inserts <i>other_str</i> before the character at the given ;TI"I<i>index</i>, modifying <i>str</i>. Negative indices count from the ;TI"Gend of the string, and insert <em>after</em> the given character. ;TI"HThe intent is insert <i>aString</i> so that it starts at the given ;TI"<i>index</i>.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [
I"*"abcd".insert(0, 'X') #=> "Xabcd"
;TI"*"abcd".insert(3, 'X') #=> "abcXd"
;TI"*"abcd".insert(4, 'X') #=> "abcdX"
;TI"*"abcd".insert(-3, 'X') #=> "abXcd"
;TI")"abcd".insert(-1, 'X') #=> "abcdX";T:@format0:
@fileI"
string.c;T:0@omit_headings_from_table_of_contents_below0I"+str.insert(index, other_str) -> str
;T0[ I"
(p1, p2);T@FI"String;TcRDoc::NormalClass00