I keep the variable name in the database and I would like to use this
name (in database) to create a variable (name from database).
Is it possible?
I keep the variable name in the database and I would like to use this
name (in database) to create a variable (name from database).
Is it possible?
What scope do you want the variable to be? If it’s within a class as an
instance variable you can use “instance_variable_set”, but I’d question
the design choice if a variable’s name is so important.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs