From: matz@... (Yukihiro Matsumoto) Date: 2000-11-28T08:00:14+09:00 Subject: [ruby-talk:6595] Re: Q: refering to a Proc from class_eval Hi, In message "[ruby-talk:6589] Q: refering to a Proc from class_eval" on 00/11/27, hipster writes: |I'm trying to wrap function definitions, and cannot find a way to |refer to a block from inside the code I generate and subsequently pass |to class_eval: |What am I missing here? The solution is supplied by Aleksi in [ruby-talk:6590]. And this thread made me think of introducing a method something like: Module#define_method(name, body=lambda()) which takes a block or a proc/method object for the body. By this method, you can do what you want more directly. matz.