class Xcodeproj::Project::Object::PBXProject

This class represents the root object of a project document.

Public Instance Methods

ascii_plist_annotation() click to toggle source
# File lib/xcodeproj/project/object/root_object.rb, line 87
def ascii_plist_annotation
  ' Project object '
end
name() click to toggle source
# File lib/xcodeproj/project/object/root_object.rb, line 83
def name
  project.path.basename('.xcodeproj').to_s
end
to_ascii_plist() click to toggle source
# File lib/xcodeproj/project/object/root_object.rb, line 99
def to_ascii_plist
  plist = super
  plist.value.delete('projectReferences') if plist.value['projectReferences'].empty?
  plist.value.delete('packageReferences') if !plist.value['packageReferences'].nil? && plist.value['packageReferences'].empty?
  plist
end
to_hash_as(method = :to_hash) click to toggle source
# File lib/xcodeproj/project/object/root_object.rb, line 91
def to_hash_as(method = :to_hash)
  hash_as = super
  if !hash_as['packageReferences'].nil? && hash_as['packageReferences'].empty?
    hash_as.delete('packageReferences') if !hash_as['packageReferences'].nil? && hash_as['packageReferences'].empty?
  end
  hash_as
end