[Nitro] [OG] eval and style

George Moschovitis george.moschovitis at gmail.com
Wed Jan 31 16:57:37 EST 2007

I am not sure it is possible to do the code generation needed for enchant
without using string evals. If some Ruby Guru (Trans or someone else?) can
prove me wrong  by all means show me how to do it ;-)


On 1/31/07, nyarly at gmail.com <nyarly at gmail.com> wrote:
> I'm reasonably new to Og, although I've followed Nitro + Og for some
> time.  Now that I'm digging into Og for my own purposes, I have some
> questions about the way it's structured.
> Mostly, I'm curious about the decision for the #enchant methods to
> eval strings on the target classes.  Is there a reason to prefer this
> over eval'ing a block, and doing the string interpolations in
> define_method calls?  If nothing else, this buys nicer backtraces that
> go through the #enchant results.
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20070131/3a812b8b/attachment.html 

More information about the Nitro-general mailing list