Paul McMahon wrote:
> Well, you could do
> 
> result = "name.upcase".split(".").inject(person) do |object, method|
>    object.send(method)
> end
> 
> but storing code in a database smells.  Perhaps it would be better to
> find another approach that avoids storing the code in the first place

Or

eval "object.#{object.stored_code}"

But really.  This sounds like a horrendously bad idea.
-- 
Posted via http://www.ruby-forum.com/.