On Mon, 19 Mar 2001, Doug Edmunds wrote:

> I am trying to figure out how to loop thru the array of
> methods generated by self.methods to extract the values
> This involves some kind of catenation of "self." with
> each array value.
>
> This doesn't work:
>
> self.methods.each { | a_method |
>   p "self.#{ a_method }"
>   }

You might try either eval as in something like:
    eval "p \"\#\{self.#{method}\}\""
or perhaps using the :name operator to get a symbol.

Jonathan Conway