Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
frameit/lib/frameit/module.rb

Overview

rubocop:disable all

Instance Method Summary collapse

Instance Method Details

#fastlane_deep_merge(second) ⇒ Object



37
38
39
40
# File 'frameit/lib/frameit/module.rb', line 37

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