Method: Xcode::Group#groups

Defined in:
lib/xcode/group.rb

#groupsArray

Returns the sub-groups contained within this group.

Examples:

Return all the sub-groups of the main group


main_group = Xcode.project('MyProject.xcodeproj').groups
main_group.groups

Returns:

  • (Array)

    the sub-groups contained within this group.



52
53
54
55
56
57
# File 'lib/xcode/group.rb', line 52

def groups
  children.find_all {|child| child.is_a?(Group) }.map do |group|
    group.supergroup = self
    group
  end
end