class Bundler::PubGrub::Assignment

属性

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

公共类方法

decision(package, version, decision_level, index) 点击切换源代码
# 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) 点击切换源代码
# 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

公共实例方法

decision?() 点击切换源代码
# File bundler/vendor/pub_grub/lib/pub_grub/assignment.rb, line 16
def decision?
  cause == :decision
end