Method: Xcodeproj::Project::Object::PBXGroup#groups

Defined in:
lib/xcodeproj/project/object/group.rb

#groupsArray<PBXGroup>

Returns the groups in the group children.

Returns:

  • (Array<PBXGroup>)

    the groups in the group children.



165
166
167
168
# File 'lib/xcodeproj/project/object/group.rb', line 165

def groups
  # Don't grep / is_a? as this would include child classes.
  children.select { |obj| obj.class == PBXGroup }
end