class XcodeProject::Data

Attributes

root[RW]

Public Class Methods

new(data, wd) click to toggle source
# File lib/xcodeproject/data.rb, line 29
def initialize(data, wd)
  @root = RootNode.new(data, wd)
end

Public Instance Methods

add_dir(parent_gpath, path) click to toggle source
# File lib/xcodeproject/data.rb, line 57
def add_dir(parent_gpath, path)
  main_group.add_group(parent_gpath).add_dir(path)
end
add_file(parent_gpath, path) click to toggle source
# File lib/xcodeproject/data.rb, line 69
def add_file(parent_gpath, path)
  main_group.add_group(parent_gpath).add_file(path)
end
add_group(gpath) click to toggle source
# File lib/xcodeproject/data.rb, line 53
def add_group(gpath)
  main_group.add_group(gpath)
end
doctor() click to toggle source
# File lib/xcodeproject/data.rb, line 77
def doctor
  targets.each(&:doctor)
end
file(gpath) click to toggle source
# File lib/xcodeproject/data.rb, line 65
def file(gpath)
  main_group.file(gpath)
end
group(gpath) click to toggle source
# File lib/xcodeproject/data.rb, line 49
def group(gpath)
  main_group.group(gpath)
end
main_group() click to toggle source
# File lib/xcodeproject/data.rb, line 45
def main_group
  project.main_group
end
project() click to toggle source
# File lib/xcodeproject/data.rb, line 33
def project
  @root.project
end
remove_file(gpath) click to toggle source
# File lib/xcodeproject/data.rb, line 73
def remove_file(gpath)
  main_group.remove_file(gpath)
end
remove_group(gpath) click to toggle source
# File lib/xcodeproject/data.rb, line 61
def remove_group(gpath)
  main_group.remove_group(gpath)
end
target(name) click to toggle source
# File lib/xcodeproject/data.rb, line 41
def target(name)
  project.target(name)
end
targets() click to toggle source
# File lib/xcodeproject/data.rb, line 37
def targets
  project.targets
end
to_plist(_fmtr = Formatter.new) click to toggle source
# File lib/xcodeproject/data.rb, line 81
def to_plist(_fmtr = Formatter.new)
  @root.to_plist
end