I have a function which gets passed the name of an instance variable,
and spits its out all nicely formatted.
Just wondering, how do i access the variable, when all i have is its
name stored as a string?
So far i’ve got this code, but it looks horrible. Is there a better way?
eval("@" << inst_var_name << “.” << field_name << “.to_s”)