Logan C. wrote:
http://eigenclass.org/hiki.rb?instance_exec has various
implementations and their respective strengths and weaknesses. Or you
just use ruby
1.9 where it’s part of the core.
Thanks a lot, Logan. That’s exactly what I need and what I have missed
completely here on the list when the discussion first came up.
It looks like I am better off sticking to my define_method() custom
solution for now, as instance_exec() uses the same approach anyway.