# File lib/backports/1.9.2/array/keep_if.rb, line 3 def keep_if return to_enum(:keep_if) unless block_given? delete_if{|elem| !yield elem} end