I would like to know if it is possible to convert a string in ruby to a variable. For example if I want the user to input a string with .get and then want to set the string they put to the name of a variable.
How can I make this work for example:
name=gets.chomp
name_var=#name as variable
name_var=Class.new
Thank you.