Class: Xcodeproj::Project::Object::PBXReferenceProxy
- Inherits:
-
AbstractObject
- Object
- AbstractObject
- Xcodeproj::Project::Object::PBXReferenceProxy
- Defined in:
- lib/xcodeproj/project/object/reference_proxy.rb
Overview
Apparently a proxy for a reference object which might belong another project contained in the same workspace of the project document.
This class is used for referencing the products of another project.
Attributes collapse
-
#file_type ⇒ String
The file type of the referenced filed.
-
#name ⇒ String
The name of the reference.
-
#path ⇒ String
The path of the referenced filed.
-
#remote_ref ⇒ PBXContainerItemProxy
The proxy to the project that contains the object.
-
#source_tree ⇒ String
The source tree for the path of the reference.
Attributes inherited from AbstractObject
Helpers collapse
-
#ascii_plist_annotation ⇒ Object
———————————————————————#.
-
#build_files ⇒ Array<PBXBuildFile>
The build files associated with the current reference proxy.
-
#display_name ⇒ String
A name suitable for displaying the object to the user.
-
#proxy? ⇒ Bool
Checks whether the reference is a proxy.
-
#remove_from_project ⇒ void
In addition to removing the reference proxy, this will also remove any items related to this reference.
Methods inherited from AbstractObject
#<=>, #==, #inspect, isa, #nested_object_for_hash, #pretty_print, #sort, #sort_recursively, #to_ascii_plist, #to_hash
Instance Attribute Details
#file_type ⇒ String
Returns the file type of the referenced filed.
22 |
# File 'lib/xcodeproj/project/object/reference_proxy.rb', line 22 attribute :file_type, String |
#name ⇒ String
Returns the name of the reference.
14 |
# File 'lib/xcodeproj/project/object/reference_proxy.rb', line 14 attribute :name, String |
#path ⇒ String
Returns the path of the referenced filed.
18 |
# File 'lib/xcodeproj/project/object/reference_proxy.rb', line 18 attribute :path, String |
#remote_ref ⇒ PBXContainerItemProxy
Returns the proxy to the project that contains the object.
27 |
# File 'lib/xcodeproj/project/object/reference_proxy.rb', line 27 has_one :remote_ref, PBXContainerItemProxy |
#source_tree ⇒ String
Returns the source tree for the path of the reference.
34 |
# File 'lib/xcodeproj/project/object/reference_proxy.rb', line 34 attribute :source_tree, String |
Instance Method Details
#ascii_plist_annotation ⇒ Object
———————————————————————#
52 53 54 |
# File 'lib/xcodeproj/project/object/reference_proxy.rb', line 52 def ascii_plist_annotation " #{name || path && File.basename(path)} " end |
#build_files ⇒ Array<PBXBuildFile>
Returns the build files associated with the current reference proxy.
68 69 70 |
# File 'lib/xcodeproj/project/object/reference_proxy.rb', line 68 def build_files referrers.grep(PBXBuildFile) end |
#display_name ⇒ String
Returns A name suitable for displaying the object to the user.
59 60 61 62 63 |
# File 'lib/xcodeproj/project/object/reference_proxy.rb', line 59 def display_name return name if name return path if path super end |
#proxy? ⇒ Bool
Checks whether the reference is a proxy.
46 47 48 |
# File 'lib/xcodeproj/project/object/reference_proxy.rb', line 46 def proxy? true end |
#remove_from_project ⇒ void
This method returns an undefined value.
In addition to removing the reference proxy, this will also remove any items related to this reference.
79 80 81 82 |
# File 'lib/xcodeproj/project/object/reference_proxy.rb', line 79 def remove_from_project build_files.each(&:remove_from_project) super end |