📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 04:56:44
📂
/ (Root)
/
opt
/
alt
/
ruby31
/
share
/
ri
/
system
/
String
📍 /opt/alt/ruby31/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"BInserts the given +other_string+ into +self+; returns +self+.;To:RDoc::Markup::BlankLine o; ; [I"SIf the \Integer +index+ is positive, inserts +other_string+ at offset +index+:;T@o:RDoc::Markup::Verbatim; [I"*'foo'.insert(1, 'bar') # => "fbaroo" ;T:@format0o; ; [I"QIf the \Integer +index+ is negative, counts backward from the end of +self+ ;TI";and inserts +other_string+ at offset <tt>index+1</tt> ;TI"-(that is, _after_ <tt>self[index]</tt>):;T@o;; [I"*'foo'.insert(-2, 'bar') # => "fobaro";T; 0: @fileI" string.c;T:0@omit_headings_from_table_of_contents_below0I"*insert(index, other_string) -> self ;T0[ I" (p1, p2);T@FI"String;TcRDoc::NormalClass00
💾 Save Changes
❌ Cancel