lib/hiera/backend.rb
# Merges two hashes answers with the configured merge behavior.
#         :merge_behavior: {:native|:deep|:deeper}
#
# Deep merge options use the Hash utility function provided by [deep_merge](https://github.com/peritor/deep_merge)
#
#  :native => Native Hash.merge
#  :deep   => Use Hash.deep_merge  
#  :deeper => Use Hash.deep_merge!
#
Merges two hashes answers with the configured merge behavior.

Deep merge options use the Hash utility function provided by [deep_merge]


Merges two hashes answers with the configured merge behavior . Deep merge options use the Hash utility function provided by [ deep_merge ]
def merge_answer(left,right)
        case Config[:merge_behavior]
        when :deeper,'deeper'
          left.deep_merge!(right)
        when :deep,'deep'
          left.deep_merge(right)
        else 
          left.merge(right)
        end
      end
def merge_answer ( left , right ) case Config [ :merge_behavior ] when :deeper , 'deeper' left . deep_merge! ( right ) when :deep , 'deep' left . deep_merge ( right ) else left . merge ( right ) end end
Merges two hashes answers with the configured merge behavior.
Merges two hashes answers with the configured merge behavior .
# Native and undefined
left
<not_specific>
right
<not_specific>