Haruka YAGNI wrote in post #986377:
> On Wed, Mar 9, 2011 at 12:45 PM, Joey Zhou <yimutang / gmail.com> wrote:
> Hash.default refers to the same Array at each element.
> You cannot use the first code, because "<<" changes the default array,
> not each element.
>
> Here is a good example from the manual, but it is Japanese... sorry
> http://www.ruby-lang.org/ja/man/html/trap_Hash.html

Thank you. I can read the codes :)

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