Darryl,

Monday, February 20, 2012, 1:57:53 PM, you wrote:

DLP> On Mon, Feb 20, 2012 at 3:49 PM, Ralph Shnelvar <ralphs / dos32.com> wrote:
>> local_variables delivers a list of symbols of the local variables. ?I'm trying to access the underlying values associated with that list.

DLP> def foo
DLP>   x = 5
DLP>   y = 9
DLP>   z = 9

DLP>   local_variables.each { |varname| puts "#{varname} evaluates to
DLP> #{eval varname}"}
DLP> end

DLP> Try that.

I get
  in `eval': can't convert Symbol into String (TypeError)



-- 
Best regards,
 Ralph                            mailto:ralphs / dos32.com