钩子方法

Class#inherited 类被继承时调用

Module#included 模块的生命周期中调用

Module#extend_object 模块扩展类时调用

Module#method_added

Module#method_removed

Module#method_undefined

原文地址:https://www.cnblogs.com/qinyan20/p/3656156.html