Mega Code Archive
Categories
/
Ruby
/
String
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"