lib/guard/yard/options.rb
# Merges the Default options and user-defined options,
# returns merged hash
# @param hash1 [Hash, nil] The first hash to merge
# @param hash2 [Hash, nil] The second hash to merge
# @return [Hash] The merged hash
Merges the Default options and user-defined options,
returns merged hash
Merges the Default options and user - defined options returns merged hash
def _deep_merge(hash1, hash2)
          hash1.merge(hash2) do |_key, oldval, newval|
            if oldval.instance_of?(Hash) && newval.instance_of?(Hash)
              _deep_merge(oldval, newval)
            else
              newval
            end
          end
        end
def _deep_merge ( hash1 , hash2 ) hash1 . merge ( hash2 ) do | _key , oldval , newval | if oldval . instance_of? ( Hash ) && newval . instance_of? ( Hash ) _deep_merge ( oldval , newval ) else newval end end end
Merges the Default options and user-defined options,
returns merged hash
Merges the Default options and user - defined options returns merged hash
The merged hash
The merged hash
Hash
hash1
The first hash to merge
The first hash to merge
hash2
The second hash to merge
The second hash to merge