method
delete_if
delete_if()
public
Deletes every element of self for which block evaluates to true.
a = [ "a", "b", "c" ] a.delete_if {|x| x >= "b" } #=> ["a"]
Register or
log in
to add new notes.
tadman -
May 13, 2009
3 thanks
Equivalent to Array#reject!
This method is functionally identical to Array#reject!

