Hi,

At Tue, 26 Feb 2008 03:23:49 +0900,
Paul Brannan wrote in [ruby-core:15662]:
> > On Tue, Feb 26, 2008 at 12:54:13AM +0900, Paul Brannan wrote:
> > > Attached is a patch to add this feature directly into YARV without a
> > > hack.
> > 
> > And another one for the Ruby 1.8 branch.
> 
> Oops, forgot the attachment.

I guess that feature could be achieved with rb_proc_new() and
Module#define_method.

-- 
Nobu Nakada