Matthew K. Williams wrote: > On Thu, 7 Jan 2010, Marc Heiler wrote: > >> Of course there exists the << method already >> [] method on string one can not append just one character to it? > string[string.size,0]='c' works > > But I think string << 'c' is clearer > > YMMV Thanks. I agree with you, string << 'c' is a lot clearer. Can someone explain the code to me? I am that thickhead. :D This code works: string = 'ab' string[2, 0] = 'c' But why does that work? And via -1, 0 it would not work right? I think I am confused why -1, 0 does not work. (My poor brain gives up too easily...) -- Posted via http://www.ruby-forum.com/.