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:
data
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.
Once you’re there, making a compare for true/false isn’t so much code.
But maybe someone else has a cleaner solution to that.
Ben
thanks…thats the type of stuff i was looking for…im used to java,
and I am actively tried to avoid coding Java style in ruby, but
sometimes its hard to figure out the shortcuts that ruby provides