David Miller wrote:
> I would like to use send to define object methods but I have not figured
> out how.

There is a magic incantation to get at the singleton class:

object_poof = Object.new
class <<object_poof; self; end.send(:define_method, :poof) {'I say 
poof!'}
object_poof.poof

I would personally use .class_eval { define_method .. } instead of 
.send(:define_method ..) but that's just preference.
-- 
Posted via http://www.ruby-forum.com/.