From: isambart@... (Vincent ISAMBART) Date: 2004-04-06T20:34:29+09:00 Subject: Re: define_method and blocks > I'm trying to add a method that receives a block as an argument via > define_method - but none of the following versions work. As it seems you can't do it with define_methods, you could try using eval. It is slower, but it should work. Try something like this : eval %{ class MyClass def meth1(*args, &block) block.call end end } eval is the most powerful statement in the script languages... PS : I have not tested it, because I have no ruby interpreter to test this on. But the idea should work :o) Vincent Isambart