method

loaded_gem_paths

ruby latest stable - Class: Bundler::RubygemsIntegration

Method not available on this version

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

loaded_gem_paths()
public

No documentation available.

# File lib/bundler/rubygems_integration.rb, line 224
    def loaded_gem_paths
      # RubyGems 2.2+ can put binary extension into dedicated folders,
      # therefore use RubyGems facilities to obtain their load paths.
      if Gem::Specification.method_defined? :full_require_paths
        loaded_gem_paths = Gem.loaded_specs.map {|_, s| s.full_require_paths }
        loaded_gem_paths.flatten
      else
        $LOAD_PATH.select do |p|
          Bundler.rubygems.gem_path.any? {|gp| p =~ /^#{Regexp.escape(gp)}/ }
        end
      end
    end