method

new

ruby latest stable - Class: Bundler::Resolver::SpecGroup

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

new(all_specs)
public

No documentation available.

# File lib/bundler/resolver/spec_group.rb, line 11
      def initialize(all_specs)
        raise ArgumentError, "cannot initialize with an empty value" unless exemplary_spec = all_specs.first
        @name = exemplary_spec.name
        @version = exemplary_spec.version
        @source = exemplary_spec.source

        @activated_platforms = []
        @dependencies = nil
        @specs        = Hash.new do |specs, platform|
          specs[platform] = select_best_platform_match(all_specs, platform)
        end
        @ignores_bundler_dependencies = true
      end