Flowdock
method

reject

Importance_1
Ruby on Rails latest stable (v4.0.2) - 1 note - Class: ActiveSupport::OrderedHash

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.

reject(&block) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Show source
Register or log in to add new notes.
February 9, 2012 - (v2.3.2 - v3.1.0)
0 thanks

reject

This is inverse operation of select. If block return false add item to array.

[1,2,3,4].reject {|n| n%2==0}

> [1, 3]

Like select method with inverse.