class Xcodeproj::Workspace::Reference

def self.prepend_parent_path(xml_node, path)

Returns:
  • (String) - the extended path including the parent node's path.

Parameters:
  • path (String) --
  • xml_node (REXML::Element) --
def self.prepend_parent_path(xml_node, path)
  if !xml_node.parent.nil? && (xml_node.parent.name == 'Group')
    group = GroupReference.from_node(xml_node.parent)
    if !group.location.nil? && !group.location.empty?
      path = '' if path.nil?
      path = File.join(group.location, path)
    end
  end
  path
end