From: Chris Morris Date: 2002-08-29T00:53:31+09:00 Subject: Re: Replacement for eval? > But can you explain me how I should use it? Assuming I'm understanding what you want: D:\temp>type test.rb class MyClass def do_this puts 'do_this called' end end c = MyClass.new methodNameReadFromXml = 'do_this' c.send(methodNameReadFromXml) D:\temp>test.rb do_this called ... otherwise you'd have to call eval: D:\temp>type test.rb class MyClass def do_this puts 'do_this called' end end c = MyClass.new methodNameReadFromXml = 'do_this' eval("c.#{methodNameReadFromXml}") D:\temp>test.rb do_this called Chris http://clabs.org