次のように私のキャンプは、レールに使用する一般的なイディオムは次のとおりです。リファクタリングモデルメソッド
def right_things(all_things, value)
things = []
for thing in all_things
things << thing if thing.attribute == value
end
return things
end
は、どのように私はこれより良い/より速く/強くすることができますか?
THX
-C