lib/hss.rb
##
# Define a method to merge config hashes
Define a method to merge config hashes
Define a method to merge config hashes
def deep_merge(new)
    merge(new) do |_, oldval, newval|
      if oldval.is_a? Hash
        deep_merge oldval, newval
      elsif oldval.is_a? Array
        oldval + newval
      else
        newval
      end
    end
  end
def deep_merge ( new ) merge ( new ) do | _ , oldval , newval | if oldval . is_a? Hash deep_merge oldval , newval elsif oldval . is_a? Array oldval + newval else newval end end end
Define a method to merge config hashes
Define a method to merge config hashes
new