Wouldn't you have to pass in the calling context (self from the callers pov) if you were deffing your methods without a class? Ie needs to k ow the object to send on, no? :) Blog: http://random8.zenunit.com/ Learn rails: http://sensei.zenunit.com/ On 04/02/2009, at 8:46 AM, Sebastian Hungerecker <sepp2k / googlemail.com> wrote: > Jason Shelton wrote: >> I currently have an array of strings. Let's say, for example, my >> array >> contains the following: >> >> ['one', 'two', 'three'] >> >> Each element in my array is the name of a function in my program. >> I want >> to call the functions, using the array element. > > Object#send is the method you want. It takes a method name (follows > by a list > of arguments, if there are any) as an argument and calls that method > on the > receiver. > > HTH, > Sebastian > -- > NP: Die Apokalyptischen Reiter - Nach Der Ebbe > Jabber: sepp2k / jabber.org > ICQ: 205544826 >