PluginFactory is a module that provides plugin behavior for any class. Including PluginFactory in your class provides a ::create class method, which can be passed the name of any derivatives. Derivative classes are loaded dynamically and instantiated by the factory class.
Gemfile gem 'pluginfactory', '~> 1.0.2'
install gem install pluginfactory -v 1.0.2