method

to_sym

v2_5_5 - Show latest stable - Class: Symbol
to_sym()
public

In general, to_sym returns the Symbol corresponding to an object. As sym is already a symbol, self is returned in this case.