I am trying to convert a string value into a name of an attribute that belongs to an object. For example, in the following code, I need all the string values in the co
co
Look at instance_eval method ...
if you have 'attribute' and need do
object.attribute = 'ololo'
you can do:
object.instance_eval('attribute') = 'ololo'