[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Opposite of id2name

Adelle Hartley

4/27/2005 5:37:00 AM

Hi all.

I would like to know if there is an opposite of id2name?

I want to turn a string into a symbol.

Adelle.



3 Answers

Daniel Amelang

4/27/2005 5:40:00 AM

0

"string".to_sym



Adelle Hartley

4/27/2005 6:23:00 AM

0

> "string".to_sym

Thankyou. I had been searching the documentation for over an hour, but not
in the right places.

Adelle.



Ara.T.Howard

4/27/2005 1:58:00 PM

0