Method: Xcodeproj::Config#merge

Defined in:
lib/xcodeproj/config.rb

#merge(config) ⇒ Config

Creates a new #Xcodeproj::Config with the data of the receiver merged with the given xcconfig representation.

Parameters:

  • config (Hash, Config)

    The xcconfig representation to merge.

Returns:

  • (Config)

    the new xcconfig.



242
243
244
# File 'lib/xcodeproj/config.rb', line 242

def merge(config)
  dup.tap { |x| x.merge!(config) }
end