lib/xcodeproj/workspace/file_reference.rb
# Returns the absolute path of a file reference given the path of the
# directory containing workspace.
#
# @param  [#to_s] workspace_dir_path
#         The Path of the directory containing the workspace.
#
# @return [String] The absolute path to the project.
#
Returns the absolute path of a file reference given the path of the
directory containing workspace.
Returns the absolute path of a file reference given the path of the directory containing workspace .
def absolute_path(workspace_dir_path)
        workspace_dir_path = workspace_dir_path.to_s
        case type
        when 'group'
          File.expand_path(File.join(workspace_dir_path, path))
        when 'container'
          File.expand_path(File.join(workspace_dir_path, path))
        when 'absolute'
          File.expand_path(path)
        when 'developer'
          raise "Developer workspace file reference type is not yet " \
            "#{self}"
        else
          raise "Unsupported workspace file reference type #{type}"
        end
      end
def absolute_path ( workspace_dir_path ) workspace_dir_path = workspace_dir_path . to_s case type when 'group' File . expand_path ( File . join ( workspace_dir_path , path ) ) when 'container' File . expand_path ( File . join ( workspace_dir_path , path ) ) when 'absolute' File . expand_path ( path ) when 'developer' raise "Developer workspace file reference type is not yet " "#{self}" else raise "Unsupported workspace file reference type #{type}" end end
Returns the absolute path of a file reference given the path of the
directory containing workspace.
Returns the absolute path of a file reference given the path of the directory containing workspace .
The absolute path to the project.
The absolute path to the project .
String
workspace_dir_path
<not_specific>
<not_specific>
workspace_dir_path The Path of the directory containing the workspace.
workspace_dir_path The Path of the directory containing the workspace .