method
clean_load_path
ruby latest stable - Class:
Bundler::SharedHelpers
clean_load_path()private
No documentation available.
# File lib/bundler/shared_helpers.rb, line 351
def clean_load_path
# handle 1.9 where system gems are always on the load path
return unless defined?(::Gem)
bundler_lib = bundler_ruby_lib
loaded_gem_paths = Bundler.rubygems.loaded_gem_paths
$LOAD_PATH.reject! do |p|
next if resolve_path(p).start_with?(bundler_lib)
loaded_gem_paths.delete(p)
end
$LOAD_PATH.uniq!
end