Subject: Re: x=[:some_key] does not work?
From: Joshua Muheim <forum josh.ch>
Date: Sun, 4 Nov 2007 05:33:40 +0900
References: 277385277387
In-reply-to: 277387
Ups I'm sorry, I messed things up because PHP uses [] for both arrays
and hashes.
x = array();
x["bla"]["some_key"] = true;
Is Ruby not capable of doing this?
x = {}
x[:bla][:some_key] = true
--
Posted via http://www.ruby-forum.com/.