lib/bio/cli.rb
# Merges config b into a
# It overrides default values but concatenates arrays
Merges config b into a
It overrides default values but concatenates arrays
Merges config b into a It overrides default values but concatenates arrays
def merge_configs(a, b)
      b.each_pair do |k, v|
        case v
        when Array
          a[k] = [v, a[k]].flatten.compact.uniq
        else
          a[k] = b[k]
        end
      end
    end
def merge_configs ( a , b ) b . each_pair do | k , v | case v when Array a [ k ] = [ v , a [ k ] ] . flatten . compact . uniq else a [ k ] = b [ k ] end end end
Merges config b into a
It overrides default values but concatenates arrays
Merges config b into a It overrides default values but concatenates arrays
a
b