Add a word (plus a space) : insert « String « Ruby






Add a word (plus a space)


"Be careful!".insert 3, "very " # => "Be very careful!"

 

Related examples in the same category

1.Inserting a String in a String
2.throw the * method in