lib/xcodeproject/pbx_group.rb in xcodeproject-0.3.6 vs lib/xcodeproject/pbx_group.rb in xcodeproject-0.3.8

- old
+ new

@@ -120,10 +120,15 @@ def relative_path (path) path = Pathname.new(path) path.relative? ? path : path.relative_path_from(total_path) end + def remove_file_ref (gpath) + obj = file(gpath) + obj.remove! unless obj.nil? + end + def remove_group (gpath) obj = group(gpath) obj.remove! unless obj.nil? end @@ -153,11 +158,12 @@ def self.add(root, name, path = nil) uuid, data = root.add_object(self.create_object_hash(name, path)) PBXGroup.new(root, uuid, data) end - alias :file :file_ref - alias :add_file :add_file_ref + alias :file :file_ref + alias :add_file :add_file_ref + alias :remove_file :remove_file_ref private def self.create_object_hash (name, path = nil) path = path.to_s