I want to create a large hash kind of information field.. basically i
have a room (with a specific name, topic, nicknames and id) it might
look like this
name = room1
topic = room1 topic
nicks = [nick1, nick2, nick3 ..]
id = 101
but i have more then 1 room, and would like something like this
rooms =
room1 =
topic = room1 topic
nicks = [nick1, nick2, nick3]
id = 101
room2 =
topic = room2 topic
nicks = [nick1, nick2, nick3 ..]
id = 102
But i wouldn't know how to do it, i need to be able to access all of the
values easily according to the room, is there an easy way to do this?
also, why do i see a lot of hashes like this format: hash = { :one =>
"something" } (im not sure i get what the :one part does..)
Thanks in advance
···
--
Posted via http://www.ruby-forum.com/.