摘要: include 模块和 extend 模块的不同: Class Extension: 通过向singleton class中加入Module来定义class method,是对象扩展的一个特例。 (因为类是特殊的对象。) 例子: class C; end module M def my_method 阅读全文
posted @ 2018-08-02 18:23 Mr-chen 阅读(458) 评论(0) 推荐(0) 编辑