Class: ZergXcode::Objects::PBXTargetDependency

Inherits:
XcodeObject
  • Object
show all
Defined in:
lib/zerg_xcode/objects/pbx_target_dependency.rb

Overview

Expresses a build target’s dependency on another build target.

Constant Summary collapse

PBXContainerItemProxy =
ZergXcode::Objects::PBXContainerItemProxy

Instance Attribute Summary

Attributes inherited from XcodeObject

#archive_id, #version

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from XcodeObject

#[], #[]=, #_attr_hash, #attrs, #copy_metadata, from, #initialize, #isa, new, #shallow_copy, #visit, #visit_array, #visit_hash, #visit_once, #visit_value, #xref_key

Constructor Details

This class inherits a constructor from ZergXcode::XcodeObject

Class Method Details

.for(target, project) ⇒ Object

Creates a new dependency on the given target



21
22
23
24
# File 'lib/zerg_xcode/objects/pbx_target_dependency.rb', line 21

def self.for(target, project)
  self.new 'target' => target,
           'targetProxy' => PBXContainerItemProxy.for(target, project)
end

Instance Method Details

#targetObject

The target that this target depends on.



16
17
18
# File 'lib/zerg_xcode/objects/pbx_target_dependency.rb', line 16

def target
  self['target']
end

#xref_nameObject

:nodoc: override xref_name to use the name of the target in the dependency



27
28
29
# File 'lib/zerg_xcode/objects/pbx_target_dependency.rb', line 27

def xref_name
  target.xref_name
end