Method: Xcodeproj::XCScheme::MacroExpansion#initialize

Defined in:
lib/xcodeproj/scheme/macro_expansion.rb

#initialize(target_or_node = nil) ⇒ MacroExpansion

Returns a new instance of MacroExpansion.

Parameters:

  • target_or_node (Xcodeproj::Project::Object::AbstractTarget, REXML::Element) (defaults to: nil)

    Either the Xcode target to reference, or an existing XML ‘MacroExpansion’ node element or nil to create an empty MacroExpansion object



11
12
13
14
15
# File 'lib/xcodeproj/scheme/macro_expansion.rb', line 11

def initialize(target_or_node = nil)
  create_xml_element_with_fallback(target_or_node, 'MacroExpansion') do
    self.buildable_reference = BuildableReference.new(target_or_node) if target_or_node
  end
end