Method: Xcodeproj::Workspace::FileReference.from_node
- Defined in:
- lib/xcodeproj/workspace/file_reference.rb
.from_node(xml_node) ⇒ FileReference
Returns a file reference given XML representation.
40 41 42 43 44 45 46 |
# File 'lib/xcodeproj/workspace/file_reference.rb', line 40 def self.from_node(xml_node) type, path = xml_node.attribute('location').value.split(':', 2) if type == 'group' path = prepend_parent_path(xml_node, path) end new(path, type) end |