Ruby Finden Sie mehrere Indizes in einem Array für einen Wert gleicher Wert

[0, 0, 1, 0, 1].select_indice{|x| x > 0}
Irene Martinez