Class: Xcode::PBXNativeTarget
- Inherits:
-
Object
- Object
- Xcode::PBXNativeTarget
- Includes:
- PBXFormatter
- Defined in:
- lib/xcode/pbx_native_target.rb
Instance Attribute Summary collapse
-
#build_configuration_list ⇒ Object
readonly
Returns the value of attribute build_configuration_list.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
- #attributes ⇒ Object
-
#initialize(name, attributes = {}) ⇒ PBXNativeTarget
constructor
A new instance of PBXNativeTarget.
Methods included from PBXFormatter
Constructor Details
#initialize(name, attributes = {}) ⇒ PBXNativeTarget
Returns a new instance of PBXNativeTarget.
6 7 8 9 10 |
# File 'lib/xcode/pbx_native_target.rb', line 6 def initialize(name, attributes = {}) @id = Xcode.register(self) @name = name @attributes = attributes end |
Instance Attribute Details
#build_configuration_list ⇒ Object (readonly)
Returns the value of attribute build_configuration_list.
4 5 6 |
# File 'lib/xcode/pbx_native_target.rb', line 4 def build_configuration_list @build_configuration_list end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/xcode/pbx_native_target.rb', line 4 def id @id end |
Instance Method Details
#attributes ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/xcode/pbx_native_target.rb', line 12 def attributes { "isa" => "PBXNativeTarget", "productName" => @name, "name" => @name, "productType" => "com.apple.product-type.application", "buildRules" => [], "dependencies" => [], "buildPhases" => [] }.merge(@attributes) end |