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
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Opposite of id2name
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password