Opposite of id2name

A

Adelle Hartley

Hi all.

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

I want to turn a string into a symbol.

Adelle.
 
A

Adelle Hartley

"string".to_sym

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

Adelle.
 
A

Ara.T.Howard

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

Adelle.

string.intern

cheers.

-a
--
===============================================================================
| email :: ara [dot] t [dot] howard [at] noaa [dot] gov
| phone :: 303.497.6469
| although gold dust is precious, when it gets in your eyes, it obstructs
| your vision. --hsi-tang
===============================================================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,171
Messages
2,570,935
Members
47,472
Latest member
KarissaBor

Latest Threads

Top