method

reject

Importance_1
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]
Show source
Register or log in to add new notes.