How can I get an array of modules included in a class, except for those that slipped through inheritance?
Note that ancestors, <=>, included_moduleswill not work, because the results do not distinguish between the modules that are included in modules that are added to the superclass. In other words, they cannot distinguish between the following two cases:
source
share