El Jueves, 24 de Abril de 2008, khaines / enigo.com escribió: > In your example, you weren't changing what a1 pointed to; you were not > changing anything about the object itself. > > irb(main):001:0> a = ['0','1','2','3'] > => ["0", "1", "2", "3"] > irb(main):002:0> a[1] > => "1" > irb(main):003:0> a1 = a[1] > => "1" > irb(main):004:0> a1 << 'abc' > => "1abc" > irb(main):005:0> a[1] > => "1abc" > > This is what he meant by "self-modifying" methods. Methods that change > something about the object itself. Really thanks. You are right, I didn't understand the meaning of "self-modifying" method, I thought that "=" was also a "self-modifying" method. Sorry for the confusion and thanks a lot. -- Iaki Baz Castillo