ary.select! {|item| block } â ary or nil
ary.select! â Enumerator
ary.select! â Enumerator
Instance Public methods
Invokes the given block passing in successive elements from
self, deleting elements for which the block returns a
false value.
If changes were made, it will return self, otherwise it
returns nil.
See also #keep_if
If no block is given, an Enumerator is returned instead.
Please login to continue.