From: "David A. Black" Date: 2008-05-09T00:32:26+09:00 Subject: Re: Why can't I redefine "<<" method to allow two parameters --1926193751-482572760-1210260743=:26037 Content-Type: MULTIPART/MIXED; BOUNDARY="1926193751-482572760-1210260743=:26037" This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --1926193751-482572760-1210260743=:26037 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Hi -- On Fri, 9 May 2008, Jimmy Kofler wrote: >> Why can't I redefine "<<" method to allow two parameters? >> Posted by I=C3=B1aki Baz Castillo (Guest) on 08.05.2008 14:42 >> Hi, very exrtange: >> ... >> my_array << ("Header", "Value") >> >> > > This seems to work as well: > > ruby -e 'p [1,2,3] << 4 << 5' > #=3D> [1, 2, 3, 4, 5] What do you guys have against #push? :-) David --=20 Rails training from David A. Black and Ruby Power and Light: INTRO TO RAILS June 9-12 Berlin ADVANCING WITH RAILS June 16-19 Berlin INTRO TO RAILS June 24-27 London (Skills Matter) See http://www.rubypal.com for details and updates! --1926193751-482572760-1210260743=:26037-- --1926193751-482572760-1210260743=:26037--