if you want better speed, you might want ot avoid method_missing and go for something like: http://gist.github.com/174264
The instance creation will be slower tho. But adding methods on your instance is also much more flexible. (note that the methods are defined at the class level and not the instance level, it can be easily changed depending on what you are after) - Matt On Mon, Aug 24, 2009 at 2:50 PM, Jordan Fowler <m...@jordanfowler.com> wrote: > > Someone should build a Rack adapter that will create these > environments on the fly. Then... we should make them chainable... > > On Aug 24, 2009, at 2:03 PM, Guyren G Howe wrote: > > > > > Thanks for all that. Now I'll have to do something sufficiently > > revolutionary to compensate for all that work. :-) > > > > On Aug 24, 2009, at 13:51 , Jordan Fowler wrote: > > > >> instance_eval(&Proc.new) > > > > > > Looks like Proc.new silently picks up the block. Didn't know that > > happened. Interesting. > > > > Regards, > > > > Guyren G Howe > > Relevant Logic LLC > > > > guyren-at-relevantlogic.com ~ http://relevantlogic.com ~ +1 512 784 > > 3178 > > > > Ruby/Rails, REALbasic, PHP programming > > PostgreSQL, MySQL database design and consulting > > Technical writing and training > > > > Read my book, Real OOP with REALbasic: < > http://relevantlogic.com/oop-book/about-the-oop-book.php > >> > > > > > > > > > > > --------------------------------------------------------------- > > Jordan A. Fowler > E-mail: m...@jordanfowler.com > Website: http://www.jordanfowler.com > Phone: (619) 339-6752 > > > > > --~--~---------~--~----~------------~-------~--~----~ SD Ruby mailing list sdruby@googlegroups.com http://groups.google.com/group/sdruby -~----------~----~----~----~------~----~------~--~---