Have you tried Hash.new()?


-----Original Message-----
From:	Schlienger, Marc [SMTP:M.Schlienger / bjoernsen.de]
Sent:	Monday, December 17, 2001 9:56 AM
To:	ruby-talk ML
Subject:	[ruby-talk:28800] hashes created dynamically

Hello,

does anyone know how to create hashes at runtime?

Let's say I have an array of strings (size unknown a priori). Each of these
strings should be a hash key. Values for the keys will also be strings but
are not known until runtime.

/Marco