Class: Xcode::PBXProj

Inherits:
Object
  • Object
show all
Includes:
PBXFormatter
Defined in:
lib/xcode/pbx_proj.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from PBXFormatter

#to_pbx

Constructor Details

#initialize(name) ⇒ PBXProj

Returns a new instance of PBXProj.



6
7
8
9
# File 'lib/xcode/pbx_proj.rb', line 6

def initialize(name)
  @name = name
  @groups = []
end

Instance Attribute Details

#groupsObject (readonly)

Returns the value of attribute groups.



4
5
6
# File 'lib/xcode/pbx_proj.rb', line 4

def groups
  @groups
end

#projectObject (readonly)

Returns the value of attribute project.



4
5
6
# File 'lib/xcode/pbx_proj.rb', line 4

def project
  @project
end

Instance Method Details

#attributesObject



11
12
13
14
15
16
17
18
19
# File 'lib/xcode/pbx_proj.rb', line 11

def attributes
  {
    "objects" => Xcode.objects,
    "rootObject" => @project.id,
    "archiveVersion" => "1",
    "objectVersion" => "45",
    "classes" => {}
  }
end