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