Sha256: 7a36f087e0b2a8b37b5746cf476bfc05ec35e7c743d612ff704544c43c6435a1
Contents?: true
Size: 217 Bytes
Versions: 10
Compression:
Stored size: 217 Bytes
Contents
# frozen_string_literal: true class Hash def rename_keys(keys_replacement_hash) transform_keys do |key| next key unless keys_replacement_hash.key?(key) keys_replacement_hash[key] end end end
Version data entries
10 entries across 10 versions & 1 rubygems