defappend_features_cv(other) # So, the protocol here is that when including +self+ into +target+ # we also include all modules that are included into +self+.
hierarchy = other.superclass_chain
superclass_chain.reverse_eachdo |ancestor|
if ancestor.instance_of?IncludedModuleandnot hierarchy.include? ancestor.moduleIncludedModule.new(ancestor.module).attach_to other
endendIncludedModule.new(self).attach_to other
end