method

add_source

ruby latest stable - Class: Bundler::Index

Method not available on this version

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

add_source(index)
public

No documentation available.

# File lib/bundler/index.rb, line 176
    def add_source(index)
      raise ArgumentError, "Source must be an index, not #{index.class}" unless index.is_a?(Index)
      @sources << index
      @sources.uniq! # need to use uniq! here instead of checking for the item before adding
    end