Extend a class by a module,  limited to the scope of a block.