method

use_api

ruby latest stable - Class: Bundler::Fetcher

Method not available on this version

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

use_api()
public

No documentation available.

# File lib/bundler/fetcher.rb, line 155
    def use_api
      return @use_api if defined?(@use_api)

      fetchers.shift until fetchers.first.available?

      @use_api = if remote_uri.scheme == "file" || Bundler::Fetcher.disable_endpoint
        false
      else
        fetchers.first.api_fetcher?
      end
    end