Class: Pod::Swift::PackageDescription::Dependency

Inherits:
Pod::Swift::PackageDescriptionBaseObject show all
Defined in:
lib/cocoapods-spm/swift/package/dependency.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

#local?Boolean

Returns:

  • (Boolean)


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

def local?
  raw.key?("fileSystem")
end

#pathObject



15
16
17
# File 'lib/cocoapods-spm/swift/package/dependency.rb', line 15

def path
  hash["path"]
end

#slugObject



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

def slug
  hash["identity"]
end