Package org.jruby

Class IncludedModuleWrapper

All Implemented Interfaces:
Serializable, Cloneable, Comparable<IRubyObject>, DelegatedModule, InstanceVariables, InternalVariables, IRubyObject, CoreObjectType

public class IncludedModuleWrapper extends IncludedModule
This class is used to provide an intermediate superclass for modules and classes that include other modules. It inserts itself as the immediate superClass of the includer, but defers all module methods to the actual superclass. Multiple of these intermediate superclasses can be added for multiple included modules. This allows the normal superclass-based searches (searchMethod, getConstant, etc) to traverse the superclass ancestors as normal while the included modules do not actually show up in direct inheritance traversal.
See Also: