> Why can't I redefine "<<" method to allow two parameters?
> Posted by IƱaki 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'
#=> [1, 2, 3, 4, 5]

Cheers,

j.k.
-- 
Posted via http://www.ruby-forum.com/.