Class: PBXGroup
Instance Attribute Summary
Attributes inherited from PBXObject
#project_file, #uuid
Instance Method Summary
collapse
Methods inherited from PBXObject
filter, #initialize, #inspect, objects_of_class
Methods inherited from Hash
#to_plist
Constructor Details
This class inherits a constructor from PBXObject
Instance Method Details
#children(recursive = false) ⇒ Object
95
96
97
98
99
100
101
102
103
104
|
# File 'lib/pbxplorer.rb', line 95
def children recursive=false
children = self.project_file.objects_with_uuids self["children"]
if recursive
subgroups = PBXGroup.objects_of_class children
subgroups.each { |subgroup| children << subgroup.children(true) }
end
children.flatten
end
|
#file_refs(recursive = false) ⇒ Object
#help ⇒ Object
118
119
120
121
122
|
# File 'lib/pbxplorer.rb', line 118
def help
puts "file_ref = group.file_refs.first\n=> " + PBXFileReference.to_s
puts "group = group.subgroups.first"
PBXGroup
end
|
#subgroups(recursive = false) ⇒ Object
110
111
112
|
# File 'lib/pbxplorer.rb', line 110
def subgroups recursive=false
PBXGroup.objects_of_class self.children(recursive)
end
|
#variant_groups(recursive = false) ⇒ Object