# File lib/i18n/core_ext/hash.rb, line 2 def slice(*keep_keys) h = {} keep_keys.each { |key| h[key] = fetch(key) } h end