On Mon, 19 Mar 2001, Doug Edmunds wrote:

> I want to concatenate strings which
> then are used as methods.
> In the example, how do I convert
> the string 'a', so I get the
> same result as 'puts b'?
> 
> my_var = "include"
> a = "self." + my_var
> b = self.include
> 
> puts "puts a: #{a}\n"
> puts "puts b: #{b}\n"

I'm not entirely sure what you're after based on your description, but I
guess you want to call certain methods by knowing their name in string
(and figuring out the receiver by some other means).

I think you should read 

  http://www.rubycentral.com/articles/dynacall.html

and ask again if you have something specific in your mind that the article
didn't explain. (Please add some comments or other hints what you expect
or require to have in certain locations of your code.)

	- Aleksi