Ruby | Symbol to_sym function
Symbol#to_sym() : to_sym() is a Symbol class method which returns the symbol representation of the symbol object. Syntax: Symbol.to_sym() Parameter: Symbol values Return: the symbol representation of the symbol object. Example #1 : Ruby # Ruby code for Symbol.to_sym() method # declaring Symbol a = :