From: "Iñaki Baz Castillo" Date: 2008-05-08T21:42:29+09:00 Subject: Why can't I redefine "<<" method to allow two parameters? Hi, very exrtange: class MyArray < Array alias original_add << def <<(n,k) original_add "#{n}: #{k}" end end my_array = MyArray.new => [] my_array << ("Header", "Value") SyntaxError: compile error (irb):25: syntax error, unexpected ',', expecting ')' my_array << ("Header", "Value") ^ Any reason for this? It seems that << is a littled "hardcoded", isn't? -- Iñaki Baz Castillo