Is it possible to split a symbol without first converting it to a string? For example, I've tried
:split_this.split("_")
and it only returns an error. I've looked through the Symbol class reference, but all the example use to_s
to convert it to a string.
I know I can convert it to a string, split it, and convert the two substrings to symbols, but that just seems a bit cumbersome. Is there a more elegant way to do this?