A
an an
Hi,
I am parsing an xml document, and I wanted to know if there is a quick
built in way to convert a string to a symbol or a boolean. an example
xml doc would be:
<test id="first" search="false">data</test>
Now I know I can do some string compares, and set the variable
accordingly, but I was wondering if there are shortcuts, much like the
to_i method.
thanks!
I am parsing an xml document, and I wanted to know if there is a quick
built in way to convert a string to a symbol or a boolean. an example
xml doc would be:
<test id="first" search="false">data</test>
Now I know I can do some string compares, and set the variable
accordingly, but I was wondering if there are shortcuts, much like the
to_i method.
thanks!