method
reject
Ruby latest stable (v1_8_7_72)
-
0 notes -
Class: Enumerable
reject()
public
Returns an array for all elements of enum for which block is false (see also Enumerable#find_all).
(1..10).reject {|i| i % 3 == 0 } #=> [1, 2, 4, 5, 7, 8, 10]

