Class: Xcodeproj::Project::Object::XCRemoteSwiftPackageReference
- Inherits:
-
AbstractObject
- Object
- AbstractObject
- Xcodeproj::Project::Object::XCRemoteSwiftPackageReference
- Defined in:
- lib/xcodeproj/project/object/swift_package_remote_reference.rb
Overview
This class represents a remote Swift package reference.
Attributes collapse
-
#repositoryURL ⇒ String
The repository url this Swift package was installed from.
-
#requirement ⇒ Hash
The version requirements for this Swift package.
Attributes inherited from AbstractObject
AbstractObject Hooks collapse
-
#ascii_plist_annotation ⇒ Object
————————————–#.
-
#display_name ⇒ String
The name of the remote 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
#repositoryURL ⇒ String
Returns the repository url this Swift package was installed from.
11 |
# File 'lib/xcodeproj/project/object/swift_package_remote_reference.rb', line 11 attribute :repositoryURL, String |
#requirement ⇒ Hash
Returns the version requirements for this Swift package.
15 |
# File 'lib/xcodeproj/project/object/swift_package_remote_reference.rb', line 15 attribute :requirement, Hash |
Instance Method Details
#ascii_plist_annotation ⇒ Object
————————————–#
20 21 22 |
# File 'lib/xcodeproj/project/object/swift_package_remote_reference.rb', line 20 def ascii_plist_annotation " #{isa} \"#{File.basename(display_name, '.git')}\" " end |
#display_name ⇒ String
Returns the name of the remote Swift package reference.
26 27 28 29 |
# File 'lib/xcodeproj/project/object/swift_package_remote_reference.rb', line 26 def display_name return repositoryURL if repositoryURL super end |