From: Paul Brannan Date: 2007-12-30T06:22:53+09:00 Subject: Re: def if ; end - basically impossible? Giles Bowkett wrote: > Could I see it? It looks as if ruby-libjit has no releases (according > to RubyForge) and I think I'll probably use your technique to make > this happen. You should be able to check the code out of svn. > Right now I'm passing blocks to a code generator, like this: > > Generator.module_eval(&block) > > I could probably do something which treats the code as strings, and > either passes them off to module_eval(&block) like this, *or* passes > them to send(:if) instead. Even a simple case statement might work. I'm having a hard time imaging what you are describing. You should be able to use self.if instead of send(:if). Paul