Class: Pod::Swift::PackageDescription::Product

Inherits:
Pod::Swift::PackageDescriptionBaseObject show all
Defined in:
lib/cocoapods-spm/swift/package/product.rb

Instance Attribute Summary

Attributes inherited from Pod::Swift::PackageDescriptionBaseObject

#parent, #raw

Instance Method Summary collapse

Methods inherited from Pod::Swift::PackageDescriptionBaseObject

#[], #dup_with_attrs, from_file, from_s, #initialize, #inspect, #name, #pkg_name, #root

Constructor Details

This class inherits a constructor from Pod::Swift::PackageDescriptionBaseObject

Instance Method Details

#dynamic?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/cocoapods-spm/swift/package/product.rb', line 7

def dynamic?
  @dynamic ||= raw.fetch("type", {}).fetch("library", []).include?("dynamic")
end

#target_namesObject



11
12
13
# File 'lib/cocoapods-spm/swift/package/product.rb', line 11

def target_names
  raw["targets"]
end