摘要: 我在查看 Array 类和 Hash 类的祖先链的时候都发现了 Enumerable,说明这两个类都mixin了Enumerable模块。Enumerable模块为集合型类提供了遍历、检索、排序等方法(collect、map、each_with_index等),该模块的方法都用到了 each ,因此 阅读全文
posted @ 2018-08-01 17:49 小芬喵 阅读(214) 评论(0) 推荐(0) 编辑