Forum: Ruby Newbie Question

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
8e3f647b38a8d4cc3ddbddcf5eb40a47?d=identicon&s=25 danielj (Guest)
on 2007-06-18 23:42
(Received via mailing list)
Can I put a hash inside a has as a "value" ?

It doesn't seem to work...
E1f43bafda26307a050d11902752b2a6?d=identicon&s=25 Ball, Donald A Jr (Library) (Guest)
on 2007-06-18 23:51
(Received via mailing list)
> -----Original Message-----
> From: danielj [mailto:danielj@sleepingindian.org]
> Sent: Monday, June 18, 2007 4:40 PM
> To: ruby-talk ML
> Subject: Newbie Question
>
> Can I put a hash inside a has as a "value" ?

Sure, but be aware that if you do anything to the hash you're using as a
key that would change its hash value, you'll need to rehash the
container hash.

- donald
8e3f647b38a8d4cc3ddbddcf5eb40a47?d=identicon&s=25 danielj (Guest)
on 2007-06-19 00:06
(Received via mailing list)
ohhh... I see...
8e3f647b38a8d4cc3ddbddcf5eb40a47?d=identicon&s=25 danielj (Guest)
on 2007-09-25 23:04
(Received via mailing list)
On Jun 18, 2:36 pm, danielj <dani...@sleepingindian.org> wrote:
> Can I put a hash inside a has as a "value" ?
>
> It doesn't seem to work...

nevermind.... figured it out... sorry
This topic is locked and can not be replied to.