摘要: 前言 如果想要复用 method, 可用的方法是针对 Class 的 inheritance,但是, inheritance has its limitations,它的缺点有: 在 Ruby 中, 可以使用 module 来解决这个问题. 关于 Modules & Mix-ins Modules 阅读全文
posted @ 2019-03-19 17:48 FBshark 阅读(157) 评论(0) 推荐(0) 编辑