From: "Iñaki Baz Castillo" Date: 2008-05-08T22:02:26+09:00 Subject: Re: Why can't I redefine "<<" method to allow two parameters? 2008/5/8, Iñaki Baz Castillo : > 2008/5/8, Iñaki Baz Castillo : > > > Any reason for this? It seems that << is a littled "hardcoded", isn't? > > > Sorry, it was a failure of mine. It works ok. Nooooooooo, it doesn't work OK at all!!! It just works if I call to the redefined << method with DOT and arguments between ( ): my_array.<<("hola","pepe") # Note the DOT in .<< => ["hola: pepe"] my_array<<("hola","pepe") # Without DOT SyntaxError: compile error (irb):11: syntax error, unexpected ',', expecting ')' my_array<<("hola","pepe") ^ from (irb):11 from :0 Why?? -- Iñaki Baz Castillo