Class: Pod::SPM::Resolver::Product
- Inherits:
-
Object
- Object
- Pod::SPM::Resolver::Product
- Defined in:
- lib/cocoapods-spm/resolver/product.rb
Instance Attribute Summary collapse
-
#binary ⇒ Object
(also: #binary?)
readonly
Returns the value of attribute binary.
-
#headers_path ⇒ Object
readonly
Returns the value of attribute headers_path.
-
#linkage ⇒ Object
readonly
Returns the value of attribute linkage.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#pkg ⇒ Object
readonly
Returns the value of attribute pkg.
Instance Method Summary collapse
- #dynamic? ⇒ Boolean
-
#initialize(options = {}) ⇒ Product
constructor
A new instance of Product.
- #inspect ⇒ Object
- #linked_as_framework? ⇒ Boolean
Constructor Details
#initialize(options = {}) ⇒ Product
Returns a new instance of Product.
9 10 11 12 13 14 15 |
# File 'lib/cocoapods-spm/resolver/product.rb', line 9 def initialize( = {}) @pkg = [:pkg] @name = [:name] @linkage = .fetch(:linkage, :static) @headers_path = [:headers_path] @binary = [:binary] end |
Instance Attribute Details
#binary ⇒ Object (readonly) Also known as: binary?
Returns the value of attribute binary.
5 6 7 |
# File 'lib/cocoapods-spm/resolver/product.rb', line 5 def binary @binary end |
#headers_path ⇒ Object (readonly)
Returns the value of attribute headers_path.
5 6 7 |
# File 'lib/cocoapods-spm/resolver/product.rb', line 5 def headers_path @headers_path end |
#linkage ⇒ Object (readonly)
Returns the value of attribute linkage.
5 6 7 |
# File 'lib/cocoapods-spm/resolver/product.rb', line 5 def linkage @linkage end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/cocoapods-spm/resolver/product.rb', line 5 def name @name end |
#pkg ⇒ Object (readonly)
Returns the value of attribute pkg.
5 6 7 |
# File 'lib/cocoapods-spm/resolver/product.rb', line 5 def pkg @pkg end |
Instance Method Details
#dynamic? ⇒ Boolean
21 22 23 |
# File 'lib/cocoapods-spm/resolver/product.rb', line 21 def dynamic? @linkage == :dynamic end |
#inspect ⇒ Object
17 18 19 |
# File 'lib/cocoapods-spm/resolver/product.rb', line 17 def inspect "#<#{self.class} #{pkg}/#{name}>" end |
#linked_as_framework? ⇒ Boolean
25 26 27 |
# File 'lib/cocoapods-spm/resolver/product.rb', line 25 def linked_as_framework? dynamic? || binary? end |