Ruby Ruby 的回调方法

ane · October 19, 2017 · Last by rocLv replied at October 20, 2017 · 1611 hits

大部分定义在 Module 中

append_features
const_missing
extended
included
method_added
method_removed
prepend_features
prepended

在 Class 中定义的

inherited

定义在 BaseObject 中的

method_missing
singleton_method_added
singleton_method_removed
singleton_method_undefined

如果有些例子就好了,一定会被加精的😀

Reply to rocLv

没必要啊,文档里都有栗子

这么说的话,发这个也没必要~ 文档里都有

Reply to rocLv

我就是给自己在线记录一下😂

You need to Sign in before reply, if you don't have an account, please Sign up first.