Package org.jruby

Class PrependedModule

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

public class PrependedModule extends RubyClass implements DelegatedModule
This class is used as an intermediate superclass for Module#prepend. It takes over all methods on the original module/class which is prepended and sets the originals methodLocation to this class. The orignial type no longer has methods so it will look down its inheritance chain to find them. The class which is actually prepended will be included onto the original type. This original method holding type will be put beneath the prepend module.
See Also: