Sha256: bc046929aa4f2f2249203d15f2c205ceb16f5a213daca22f8b2015e7e7bdb57a

Contents?: true

Size: 238 Bytes

Versions: 19

Compression:

Stored size: 238 Bytes

Contents

# ********** Copyright 2016 Viacom, Inc. Apache 2.0 **********

class ::Hash
  def deep_merge(second)
    merger = proc { |_key, v1, v2| Hash === v1 && Hash === v2 ? v1.merge(v2, &merger) : v2  }
    self.merge(second, &merger)
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
roku_builder-4.7.2 lib/roku_builder/hash.rb
roku_builder-4.7.1 lib/roku_builder/hash.rb
roku_builder-4.7.0 lib/roku_builder/hash.rb
roku_builder-4.6.2 lib/roku_builder/hash.rb
roku_builder-4.6.1 lib/roku_builder/hash.rb
roku_builder-4.6.0 lib/roku_builder/hash.rb
roku_builder-4.5.3 lib/roku_builder/hash.rb
roku_builder-4.5.2 lib/roku_builder/hash.rb
roku_builder-4.5.1 lib/roku_builder/hash.rb
roku_builder-4.5.0 lib/roku_builder/hash.rb
roku_builder-4.3.1 lib/roku_builder/hash.rb
roku_builder-4.3.0 lib/roku_builder/hash.rb
roku_builder-4.2.3 lib/roku_builder/hash.rb
roku_builder-4.2.2 lib/roku_builder/hash.rb
roku_builder-4.2.1 lib/roku_builder/hash.rb
roku_builder-4.2.0 lib/roku_builder/hash.rb
roku_builder-4.1.0 lib/roku_builder/hash.rb
roku_builder-4.0.1 lib/roku_builder/hash.rb
roku_builder-4.0.0 lib/roku_builder/hash.rb