From: Sam Smoot Date: 2007-12-29T12:49:58+09:00 Subject: Re: def if ; end - basically impossible? On Dec 28, 3:51 pm, Giles Bowkett wrote: > Generator.module_eval(&block) If you're passing the code as a block, the easiest solution may be ParseTree? I haven't toyed with it, but Ryan Davis also just released ruby_parser apparently, which seems to be a pure-ruby version of ParseTree.