Sha256: 723867cd5c256e26454287b8acfeae7be7bace9ba23b4dcaac585815f49a1a1c
Contents?: true
Size: 277 Bytes
Versions: 1
Compression:
Stored size: 277 Bytes
Contents
module Timber module Macros # Deep merges hash keys module DeepMerger def self.merge(first, second) merger = proc { |_key, v1, v2| Hash === v1 && Hash === v2 ? v1.merge(v2, &merger) : v2 } first.merge(second, &merger) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
timberio-1.0.0.beta1 | lib/timber/macros/deep_merger.rb |