Michael Neumann <neumann / s-direktnet.de> writes:


[...]

> What you want would be
> 
> h["banana"] <<= 1     # => [1]
> 
> which equals to
> 
> h["banana"] = h["banana"].push(1)

Strange, AFAIK Hash#push modifies the object in place, so this would equal
to:

h["banana"].push(1)


No?


-- 
Guillaume Cottenceau - http://mandrakesoft.com/~gc/