From: Jeff Barczewski Date: 2007-02-07T06:03:50+09:00 Subject: Re: Best way to do dynamic mixin or dynamic include? (Mixin module name is defined and included at runtime) ------=_Part_14710_15449991.1170795826454 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks Ara and Trans for your quick responses and solutions. Depending on the circumstances I can see uses for both solutions. Have a great day!! Jeff On 2/6/07, Trans wrote: > > > > On Feb 6, 2:29 pm, "Jeff Barczewski" > wrote: > > I am searching for the best way to do a dynamic mixin with Ruby. > > > > Basically I have a class that includes a mixin but I want the mixin > module > > name to be driven from configuration and not the code. > > > > class A > > include Foo > > end > > Ara's is probably best, but FYI > > include const_get(module_name) > > T. > > > ------=_Part_14710_15449991.1170795826454--