Subject: Re: Replacement for eval?
From: "Chris Morris" <chrismo clabs.org>
Date: Wed, 28 Aug 2002 23:34:34 +0900
References: 48430
> So: what can I use instead of eval?
Check out the send method
def call_method(obj, methodName)
obj.send(methodName)
end
call_method(myObj, 'do_thing')
Chris
http://clabs.org