Convert to Symbol « String « Ruby






1.To convert a string into a symbol (Symbol class), use either the to_sym or intern methods
2.The value of the string, not its name, becomes the symbol