Phlip
4/4/2008 2:18:00 AM
>> I need to store one line method calls as strings in my db and then apply
>> them to an object. For example, I would store "name.upcase" in the db
>> and then somehow call person.name.upcase. Any idea how I might pull this
>> off?
> Don't Do It!
Except, for example, if code A determines the need to schedule a call to
A.foo(42), and wants to run that event at a scheduled time, such as out of a
cron job. Then dropping a _short_ "A.foo(42)" into the database, then
fetching it out and eval()-ing it, is not such an inelegant solution.
--
Phlip