Class: Xcodeproj::Project::Object::XCSwiftPackageProductDependency
- Inherits:
-
AbstractObject
- Object
- AbstractObject
- Xcodeproj::Project::Object::XCSwiftPackageProductDependency
- Defined in:
- lib/xcodeproj/project/object/swift_package_product_dependency.rb
Overview
This class represents a Swift package product dependency.
Attributes collapse
-
#package ⇒ XCRemoteSwiftPackageReference
The Swift package reference.
-
#product_name ⇒ String
The product name of this Swift package.
Attributes inherited from AbstractObject
AbstractObject Hooks collapse
-
#display_name ⇒ String
The name of the Swift package.
Methods inherited from AbstractObject
#<=>, #==, #ascii_plist_annotation, #inspect, isa, #nested_object_for_hash, #pretty_print, #remove_from_project, #sort, #sort_recursively, #to_ascii_plist, #to_hash
Instance Attribute Details
#package ⇒ XCRemoteSwiftPackageReference
Returns the Swift package reference.
11 |
# File 'lib/xcodeproj/project/object/swift_package_product_dependency.rb', line 11 has_one :package, XCRemoteSwiftPackageReference |
#product_name ⇒ String
Returns the product name of this Swift package.
15 |
# File 'lib/xcodeproj/project/object/swift_package_product_dependency.rb', line 15 attribute :product_name, String |
Instance Method Details
#display_name ⇒ String
Returns the name of the Swift package.
22 23 24 25 |
# File 'lib/xcodeproj/project/object/swift_package_product_dependency.rb', line 22 def display_name return product_name if product_name super end |