From: Fredrik Date: 2008-09-13T19:08:05+09:00 Subject: Re: Is my method defined? On Sep 13, 6:24 pm, Sebastian Hungerecker wrote: > Fredrik wrote: > > I have a method by the name methodA. I want to access this method like > > this > > > a = 'methodA' > > eval(a) > > You should use send if a only contains a methodname. > > > But how do I know if the variable a actually holds the name of a > > defined method? > > respond_to? method_name > > HTH, > Sebastian > -- > NP: Metallica - The Day That Never Comes > Jabber: sep...@jabber.org > ICQ: 205544826 I got it! respond_to? is what I was looking for. Thanks! I will open my Ruby book and look into that send thing... /Fredrik