class Bundler::PubGrub::Assignment

Attributes

cause[R]
decision_level[R]
index[R]
term[R]

Public Class Methods

decision(package, version, decision_level, index) click to toggle source
# File bundler/vendor/pub_grub/lib/pub_grub/assignment.rb, line 11
def self.decision(package, version, decision_level, index)
  term = Term.new(VersionConstraint.exact(package, version), true)
  new(term, :decision, decision_level, index)
end
new(term, cause, decision_level, index) click to toggle source
# File bundler/vendor/pub_grub/lib/pub_grub/assignment.rb, line 4
def initialize(term, cause, decision_level, index)
  @term = term
  @cause = cause
  @decision_level = decision_level
  @index = index
end

Public Instance Methods

decision?() click to toggle source
# File bundler/vendor/pub_grub/lib/pub_grub/assignment.rb, line 16
def decision?
  cause == :decision
end