Derrick B. wrote in post #1090541:
>
> I just wanted to understand how the block supplied the argument to new.
>

To be clear, the block does not execute when new() is called.   The Hash 
class stores the block in an instance variable, and only when a 
non-existent key is accessed does the block execute.

> Thanks for the examples,

Sure.  Good luck with ruby.

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