Un __gVirt_NP_NN_NNPS<__ idiome commun que mon camp utilise dans des rails est comme suit:refactoring Modèle Méthodes en Ruby On Rails
def right_things(all_things, value)
things = []
for thing in all_things
things << thing if thing.attribute == value
end
return things
end
comment puis-je faire de ce mieux/plus rapide/plus forte?
thx
C