Learn Ruby
Symbol
13.2
Lesson

to_sym to convert a string into a symbol

A string can be converted into a symbol by using method to_sym.