Class: Ovaltine::XcodeProject::PBXFileReference

Inherits:
PBXObject show all
Defined in:
lib/ovaltine/xcode_project/pbxfilereference.rb

Instance Attribute Summary

Attributes inherited from PBXObject

#project_file, #uuid

Class Method Summary collapse

Methods inherited from PBXObject

create_uuid, filter, #initialize, #inspect

Methods inherited from Hash

#to_plist

Constructor Details

This class inherits a constructor from Ovaltine::XcodeProject::PBXObject

Class Method Details

.create(path, file_type) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/ovaltine/xcode_project/pbxfilereference.rb', line 5

def self.create path, file_type
  self.new PBXObject.create_uuid, {
    "sourceTree" => "<group>",
    "path" => path,
    "lastKnownFileType" => file_type
  }
end