Class: Capsium::Package::ResolvedDependency

Inherits:
Data
  • Object
show all
Defined in:
lib/capsium/package/dependency_resolver.rb,
sig/capsium/package/dependency_resolver.rbs

Overview

One resolved dependency: the declared GUID and range, the .cap it resolved to and the loaded package.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#guidObject (readonly)

Returns the value of attribute guid

Returns:

  • (Object)

    the current value of guid



24
25
26
# File 'lib/capsium/package/dependency_resolver.rb', line 24

def guid
  @guid
end

#packageObject (readonly)

Returns the value of attribute package

Returns:

  • (Object)

    the current value of package



24
25
26
# File 'lib/capsium/package/dependency_resolver.rb', line 24

def package
  @package
end

#pathObject (readonly)

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



24
25
26
# File 'lib/capsium/package/dependency_resolver.rb', line 24

def path
  @path
end

#rangeObject (readonly)

Returns the value of attribute range

Returns:

  • (Object)

    the current value of range



24
25
26
# File 'lib/capsium/package/dependency_resolver.rb', line 24

def range
  @range
end

Class Method Details

.newvoid

This method returns an undefined value.

Parameters:

  • guid (String)
  • range (String)
  • path (String)
  • package (Package)


28
# File 'sig/capsium/package/dependency_resolver.rbs', line 28

def self.new: (String guid, String range, String path, Package package) -> void

Instance Method Details

#versionString?

Returns:

  • (String, nil)


25
26
27
# File 'lib/capsium/package/dependency_resolver.rb', line 25

def version
  package..version
end