class Xcodeproj::Config

def initialize(xcconfig = {})

def initialize(xcconfig = {})
  @attributes = {}
  merge!(xcconfig)
end

def merge!(xcconfig)

def merge!(xcconfig)
  xcconfig.to_hash.each do |key, value|
    if existing_value = @attributes[key]
      @attributes[key] = "#{existing_value} #{value}"
    else
      @attributes[key] = value
    end
  end
end

def save_as(pathname)

def save_as(pathname)
  pathname.open('w') { |file| file << to_s }
end

def to_hash

def to_hash
  @attributes
end

def to_s

def to_s
  @attributes.map { |key, value| "#{key} = #{value}" }.join("\n")
end