Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
every 方法定义为
... def every per(:map) end ...
方面是否定义了一种方法
... # name not relevant def find_where per(:find) # or :detect end ...
我检查了文档,很可能我只是想念它
实际上它有点在他们的文档中 使用流体符号
([1,2,3].per.map + 3) 或者在我的情况下 ([1,2,3].per.find == 3)
([1,2,3].per.map + 3)
([1,2,3].per.find == 3)