阅读背景:

是否有惯用的ruby / rails方式返回第一个truthy映射值?

来源:互联网 

I have an array of objects, some of which respond to :description, and I want to get the description from the first one with a truthy description. I could do this:I have an array of objects, some of which respo




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: