Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Ruby halp plx

Name: OP 2008-02-01 8:15

How do i make a key in a hash(in ruby, if you missed the subject) point to a key in another hash?

I want this:
hash1["key"] = "hay guise"
hash2["key"] = hash1["key"]
hash1["key"] = "ruby is for faggots"
p hash2["key"]

to output > "ruby is for faggots"

Name: Anonymous 2008-02-01 8:21

Your problem is not that you want to make a key in a hash point to a key in another hash, but something else. Tell us what that something else is and we will help you.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List