Method: Xcodeproj::Workspace::FileReference#absolute_path
- Defined in:
- lib/xcodeproj/workspace/file_reference.rb
#absolute_path(workspace_dir_path) ⇒ String
Returns the absolute path of a file reference given the path of the directory containing workspace.
64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/xcodeproj/workspace/file_reference.rb', line 64 def absolute_path(workspace_dir_path) workspace_dir_path = workspace_dir_path.to_s case type when 'group', 'container', 'self' File.(File.join(workspace_dir_path, path)) when 'absolute' File.(path) when 'developer' raise "Developer workspace file reference type is not yet supported (#{path})" else raise "Unsupported workspace file reference type `#{type}`" end end |