OK, I have this variable called box.

I want to define a singleton method xy on it. No problem.

However, I need a closure. So I need to use define_method
rather than def.

This is how I did it:

   class << box; self; end.class_eval { define_method(:xy) {[x,y]} }

Surely there is an easier way??


Hal