📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 03:40:33
📂
/ (Root)
/
opt
/
alt
/
ruby27
/
share
/
ri
/
system
/
String
📍 /opt/alt/ruby27/share/ri/system/String
🔄 Refresh
✏️
Editing: insert-i.ri
Read Only
U:RDoc::AnyMethod[iI"insert:ETI"String#insert;TF:privateo: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
💾 Save Changes
❌ Cancel