From: Trans Date: 2007-02-07T05:07:28+09:00 Subject: Re: Best way to do dynamic mixin or dynamic include? (Mixin module name is defined and included at runtime) 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.