Sha256: 27b227383ea9d35354dab1c0b85f3bc8118c3d0076d60b6d95cd66bf1b78c52f

Contents?: true

Size: 516 Bytes

Versions: 170

Compression:

Stored size: 516 Bytes

Contents

module Bundler::PubGrub
  class Assignment
    attr_reader :term, :cause, :decision_level, :index
    def initialize(term, cause, decision_level, index)
      @term = term
      @cause = cause
      @decision_level = decision_level
      @index = index
    end

    def self.decision(package, version, decision_level, index)
      term = Term.new(VersionConstraint.exact(package, version), true)
      new(term, :decision, decision_level, index)
    end

    def decision?
      cause == :decision
    end
  end
end

Version data entries

170 entries across 170 versions & 4 rubygems

Version Path
bundler-2.5.15 lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
rubygems-update-3.5.14 bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
bundler-2.5.14 lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
rubygems-update-3.5.13 bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
bundler-2.5.13 lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
rubygems-update-3.5.12 bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
bundler-2.5.12 lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
rubygems-update-3.5.10 bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
bundler-2.5.10 lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
harbr-2.8.1 vendor/bundle/ruby/3.2.0/gems/bundler-2.4.21/lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
rubygems-update-3.5.9 bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
bundler-2.5.9 lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
rubygems-update-3.5.8 bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
bundler-2.5.8 lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
rubygems-update-3.5.7 bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
bundler-2.5.7 lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
direct7-0.0.13 vendor/bundle/ruby/2.7.0/gems/bundler-2.4.21/lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
rubygems-update-3.5.6 bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
bundler-2.5.6 lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb
direct7-0.0.12 vendor/bundle/ruby/2.7.0/gems/bundler-2.4.21/lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb