Class: Xcode::PBXProject
- Inherits:
-
Object
- Object
- Xcode::PBXProject
- Includes:
- PBXFormatter
- Defined in:
- lib/xcode/pbx_project.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
- #compatibility_version ⇒ Object
-
#initialize(attributes = {}) ⇒ PBXProject
constructor
A new instance of PBXProject.
- #isa ⇒ Object
Methods included from PBXFormatter
Constructor Details
#initialize(attributes = {}) ⇒ PBXProject
Returns a new instance of PBXProject.
6 7 8 9 |
# File 'lib/xcode/pbx_project.rb', line 6 def initialize(attributes = {}) @id = Xcode.register(self) @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_project.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_project.rb', line 4 def id @id end |
Instance Method Details
#attributes ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/xcode/pbx_project.rb', line 11 def attributes { "isa" => isa, "compatibilityVersion" => "Xcode 3.1", "projectDirPath" => "", "projectRoot" => "", "targets" => [], }.merge @attributes end |
#compatibility_version ⇒ Object
21 22 23 |
# File 'lib/xcode/pbx_project.rb', line 21 def compatibility_version "Xcode 3.1" end |
#isa ⇒ Object
25 26 27 |
# File 'lib/xcode/pbx_project.rb', line 25 def isa "PBXProject" end |