Inserting a String in a String : insert « String « Ruby






Inserting a String in a String


The insert method lets you insert another string at a given index in a string. 

"Be carful.".insert 6, "e" 

 








Related examples in the same category

1.Add a word (plus a space)
2.throw the * method in