# File lib/backports/1.9.2/hash.rb, line 2 def keep_if return to_enum(:keep_if) unless block_given? delete_if{|key, value| ! yield key, value} end