Actually, self.class returns all the namespacing from where the module is mixed in so I approached it from that angle. Updated the pull.