D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
String
/
Filename :
insert-i.ri
back
Copy
U:RDoc::AnyMethod[iI"insert:ETI"String#insert;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"BInserts the given +other_string+ into +self+; returns +self+.;To:RDoc::Markup::BlankLine o; ; [I"RIf 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"PIf 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