Class: Xcodeproj::Project::Object::XCLocalSwiftPackageReference
- Inherits:
-
AbstractObject
- Object
- AbstractObject
- Xcodeproj::Project::Object::XCLocalSwiftPackageReference
- Defined in:
- lib/xcodeproj/project/object/swift_package_local_reference.rb
Overview
This class represents a local Swift package reference.
Attributes collapse
-
#path ⇒ String
The repository url this Swift package was installed from.
-
#relative_path ⇒ String
The repository path where the package is located relative to the Xcode project.
Attributes inherited from AbstractObject
AbstractObject Hooks collapse
-
#ascii_plist_annotation ⇒ Object
————————————–#.
-
#display_name ⇒ String
The path of the local Swift package reference.
Methods inherited from AbstractObject
#<=>, #==, #inspect, isa, #nested_object_for_hash, #pretty_print, #remove_from_project, #sort, #sort_recursively, #to_ascii_plist, #to_hash
Instance Attribute Details
#path ⇒ String
Returns the repository url this Swift package was installed from.
11 |
# File 'lib/xcodeproj/project/object/swift_package_local_reference.rb', line 11 attribute :path, String |
#relative_path ⇒ String
Returns the repository path where the package is located relative to the Xcode project.
16 |
# File 'lib/xcodeproj/project/object/swift_package_local_reference.rb', line 16 attribute :relative_path, String |
Instance Method Details
#ascii_plist_annotation ⇒ Object
————————————–#
21 22 23 |
# File 'lib/xcodeproj/project/object/swift_package_local_reference.rb', line 21 def ascii_plist_annotation " #{isa} \"#{File.basename(display_name)}\" " end |
#display_name ⇒ String
Returns the path of the local Swift package reference.
27 28 29 30 |
# File 'lib/xcodeproj/project/object/swift_package_local_reference.rb', line 27 def display_name return relative_path if relative_path super end |