From: nobu.nokada@... Date: 2003-02-05T10:22:40+09:00 Subject: Re: Is mixin possible with dynamic require? Hi, At Wed, 5 Feb 2003 10:05:25 +0900, Jon Hurst wrote: > I need to dynamically require a file(module) from within a class. I then > need to mixin a method from this module. However, include doesn't seem to be > supported from within a method. I cannot place include outside of a method, > because the module has not yet been required. How can this be solved? class Foo def mixin(mod) self.class.class_eval {include mod} end end -- Nobu Nakada