123456789_123456789_123456789_123456789_123456789_

Class: Gem::Molinillo::Resolver::Resolution::PossibilitySet

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Struct
Instance Chain:
self, Struct
Inherits: Struct
  • Object
Defined in: lib/rubygems/vendor/molinillo/lib/molinillo/resolution.rb,
lib/rubygems/vendor/molinillo/lib/molinillo/resolution.rb

Overview

A collection of possibility states that share the same dependencies

Instance Attribute Summary

  • #dependencies rw

    A collection of possibility states that share the same dependencies.

  • #possibilities rw

    A collection of possibility states that share the same dependencies.

Instance Method Summary

Instance Attribute Details

#dependencies (rw)

A collection of possibility states that share the same dependencies

[ GitHub ]

  
# File 'lib/rubygems/vendor/molinillo/lib/molinillo/resolution.rb', line 41

PossibilitySet = Struct.new(:dependencies, :possibilities)

#possibilities (rw)

A collection of possibility states that share the same dependencies

[ GitHub ]

  
# File 'lib/rubygems/vendor/molinillo/lib/molinillo/resolution.rb', line 41

PossibilitySet = Struct.new(:dependencies, :possibilities)

Instance Method Details

#latest_versionObject

Returns:

  • (Object)

    most up-to-date dependency in the possibility set

[ GitHub ]

  
# File 'lib/rubygems/vendor/molinillo/lib/molinillo/resolution.rb', line 50

def latest_version
  possibilities.last
end

#to_s

String representation of the possibility set, for debugging

[ GitHub ]

  
# File 'lib/rubygems/vendor/molinillo/lib/molinillo/resolution.rb', line 45

def to_s
  "[#{possibilities.join(', ')}]"
end