Class: XcodeProject::PBXProject
- Defined in:
- lib/xcodeproject/pbx_project.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#compatibility_version ⇒ Object
readonly
Returns the value of attribute compatibility_version.
-
#development_region ⇒ Object
readonly
Returns the value of attribute development_region.
-
#know_regions ⇒ Object
readonly
Returns the value of attribute know_regions.
-
#main_group ⇒ Object
readonly
Returns the value of attribute main_group.
-
#product_ref_group ⇒ Object
readonly
Returns the value of attribute product_ref_group.
-
#project_dir_path ⇒ Object
readonly
Returns the value of attribute project_dir_path.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(root, uuid, data) ⇒ PBXProject
constructor
A new instance of PBXProject.
- #target(name) ⇒ Object
- #targets ⇒ Object
Constructor Details
#initialize(root, uuid, data) ⇒ PBXProject
Returns a new instance of PBXProject.
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/xcodeproject/pbx_project.rb', line 13 def initialize (root, uuid, data) super(root, uuid, data) @main_group = root.object!(data['mainGroup']) @product_ref_group = root.object!(data['productRefGroup']) @project_dir_path = data['projectDirPath'] @compatibility_version = data['compatibilityVersion'] @development_region = data['developmentRegion'] @know_regions = data['knownRegions'] @attributes = data['attributes'] end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
11 12 13 |
# File 'lib/xcodeproject/pbx_project.rb', line 11 def attributes @attributes end |
#compatibility_version ⇒ Object (readonly)
Returns the value of attribute compatibility_version.
8 9 10 |
# File 'lib/xcodeproject/pbx_project.rb', line 8 def compatibility_version @compatibility_version end |
#development_region ⇒ Object (readonly)
Returns the value of attribute development_region.
9 10 11 |
# File 'lib/xcodeproject/pbx_project.rb', line 9 def development_region @development_region end |
#know_regions ⇒ Object (readonly)
Returns the value of attribute know_regions.
10 11 12 |
# File 'lib/xcodeproject/pbx_project.rb', line 10 def know_regions @know_regions end |
#main_group ⇒ Object (readonly)
Returns the value of attribute main_group.
5 6 7 |
# File 'lib/xcodeproject/pbx_project.rb', line 5 def main_group @main_group end |
#product_ref_group ⇒ Object (readonly)
Returns the value of attribute product_ref_group.
6 7 8 |
# File 'lib/xcodeproject/pbx_project.rb', line 6 def product_ref_group @product_ref_group end |
#project_dir_path ⇒ Object (readonly)
Returns the value of attribute project_dir_path.
7 8 9 |
# File 'lib/xcodeproject/pbx_project.rb', line 7 def project_dir_path @project_dir_path end |
Instance Method Details
#target(name) ⇒ Object
29 30 31 |
# File 'lib/xcodeproject/pbx_project.rb', line 29 def target (name) root.find_object('PBXNativeTarget', {'name' => name}) end |
#targets ⇒ Object
25 26 27 |
# File 'lib/xcodeproject/pbx_project.rb', line 25 def targets data['targets'].map {|uuid| root.object!(uuid)} end |