method

source_list_for

ruby latest stable - Class: Bundler::SourceList

Method not available on this version

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

source_list_for(source)
private

No documentation available.

# File lib/bundler/source_list.rb, line 133
    def source_list_for(source)
      case source
      when Source::Git          then git_sources
      when Source::Path         then path_sources
      when Source::Rubygems     then rubygems_sources
      when Plugin::API::Source  then plugin_sources
      else raise ArgumentError, "Invalid source: #{source.inspect}"
      end
    end