Method: Xcodeproj::Config#initialize

Defined in:
lib/xcodeproj/config.rb

#initialize(xcconfig_hash_or_file = {}) ⇒ Config

Returns a new instance of Config.

Parameters:

  • xcconfig_hash_or_file (Hash, File, String) (defaults to: {})

    The initial data.



58
59
60
61
62
63
64
65
66
# File 'lib/xcodeproj/config.rb', line 58

def initialize(xcconfig_hash_or_file = {})
  @attributes = {}
  @includes = []
  @other_linker_flags = {}
  [:simple, :frameworks, :weak_frameworks, :libraries, :arg_files, :force_load].each do |key|
    @other_linker_flags[key] = Set.new
  end
  merge!(extract_hash(xcconfig_hash_or_file))
end