From: Mark Probert Date: 2004-10-22T02:04:18+09:00 Subject: Re: Idiom -- is there a better way? Hi .. Gavin Kistner wrote: > On Oct 20, 2004, at 10:54 AM, Mark Probert wrote: >> class Foo >> def bar(fn) >> eval "self.#{fn}" >> end >> end > > Does the function need to be a string argument? > Yup. What I am doing is taking a YAML entry and converting it into a method call for a derived class. Thanks to all for the help. -- -mark. (probertm @ acm dot org)