Class: ZergXcode::Objects::PBXTargetDependency
- Inherits:
-
XcodeObject
- Object
- XcodeObject
- ZergXcode::Objects::PBXTargetDependency
- 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
Class Method Summary collapse
-
.for(target, project) ⇒ Object
Creates a new dependency on the given target.
Instance Method Summary collapse
-
#target ⇒ Object
The target that this target depends on.
-
#xref_name ⇒ Object
:nodoc: override xref_name to use the name of the target in the dependency.
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
#target ⇒ Object
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_name ⇒ Object
: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 |