Joshua Muheim wrote: > Hi all > > I have the following code snipped: > > @country = Country.new > > Instead of hardcoding @country and Country I'd like to use the contents > of two strings: > > instance_var_name = 'country' > class_name = 'Country' > > How can this be achieved? > > Thanks a lot for help and yes, I'm working on my Ruby skills but I'm not > quite there yet. ;-) > > Josh > > ri Object#instance_variable_set ri Module#const_get