Class: ZergXcode::Objects::PBXTargetDependency

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

Overview

Expresses a target's dependency on another 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


11
12
13
14
# File 'lib/zerg_xcode/objects/pbx_target_dependency.rb', line 11

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.


6
7
8
# File 'lib/zerg_xcode/objects/pbx_target_dependency.rb', line 6

def target
  self['target']
end

#xref_nameObject

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


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

def xref_name
  target.xref_name
end