ruby/lib/rubygems/specification.rb
##
# Adds this spec's require paths to LOAD_PATH, in the proper location.
Adds this spec's require paths to LOAD_PATH, in the proper location.
Adds this spec ' s require paths to LOAD_PATH in the proper location .
def add_self_to_load_path
    return if default_gem?
    paths = full_require_paths
    insert_index = Gem.load_path_insert_index
    if insert_index then
      $LOAD_PATH.insert(insert_index, *paths)
    else
      $LOAD_PATH.unshift(*paths)
    end
  end
def add_self_to_load_path return if default_gem? paths = full_require_paths insert_index = Gem . load_path_insert_index if insert_index then $LOAD_PATH . insert ( insert_index , * paths ) else $LOAD_PATH . unshift ( * paths ) end end
Adds this spec's require paths to LOAD_PATH, in the proper location.
Adds this spec ' s require paths to LOAD_PATH in the proper location .
# gem directories must come after -I and ENV['RUBYLIB'] # gem directories must come after -I and ENV['RUBYLIB'] # we are probably testing in core, -I and RUBYLIB don't apply